[gnome-subtitles] Code cleanup



commit b78fe68e7dfb7b7737d11a64e53e9e0396cca988
Author: Pedro Castro <mail pedrocastro org>
Date:   Sun Jun 7 15:54:44 2009 +0100

    Code cleanup
---
 src/SubLib/Core/Domain/Times.cs               |    5 +----
 src/SubLib/Core/Search/SearchOperator.cs      |    3 +--
 src/SubLib/Core/Timing/SynchronizeOperator.cs |    5 +----
 3 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/src/SubLib/Core/Domain/Times.cs b/src/SubLib/Core/Domain/Times.cs
index 597172c..d653555 100644
--- a/src/SubLib/Core/Domain/Times.cs
+++ b/src/SubLib/Core/Domain/Times.cs
@@ -1,6 +1,6 @@
 /*
  * This file is part of SubLib.
- * Copyright (C) 2005-2008 Pedro Castro
+ * Copyright (C) 2005-2009 Pedro Castro
  *
  * SubLib is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -110,7 +110,6 @@ public class Times {
 	}
 	
 	internal void Scale (double factor, TimeSpan baseTime) {
-		System.Console.WriteLine("Factor " + factor + " baseTime " + baseTime);
 		double baseMilliseconds = baseTime.TotalMilliseconds;
 	
 		double start = PreciseStart.TotalMilliseconds;
@@ -121,8 +120,6 @@ public class Times {
 		double newEnd = baseMilliseconds + ((end - baseMilliseconds) * factor);
 		PreciseEnd = TimeSpan.FromMilliseconds(newEnd);
 
-		System.Console.WriteLine("Start " + start + ", newStart " + newStart + ", end " + end + ", newEnd " + newEnd);
-		
 		subtitle.UpdateFramesFromTimes();	
 	}
 
diff --git a/src/SubLib/Core/Search/SearchOperator.cs b/src/SubLib/Core/Search/SearchOperator.cs
index ccdf438..ad36110 100644
--- a/src/SubLib/Core/Search/SearchOperator.cs
+++ b/src/SubLib/Core/Search/SearchOperator.cs
@@ -1,6 +1,6 @@
 /*
  * This file is part of SubLib.
- * Copyright (C) 2006-2008 Pedro Castro
+ * Copyright (C) 2006-2009 Pedro Castro
  *
  * SubLib is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -39,7 +39,6 @@ public class SearchOperator {
 	/// <param name="options">The search options.</param>
 	/// <returns>The search results, or null in case no results were found.</returns>
 	public SubtitleSearchResults Find (SubtitleSearchOptions options) {
-		System.Console.WriteLine("Finding " + options.Regex.ToString() + " from subtitle " + options.StartSubtitle + ", index " + options.StartIndex + ", type " + options.TextType);
 		if (options.Backwards)
 			return FindBackward(options);
 		else
diff --git a/src/SubLib/Core/Timing/SynchronizeOperator.cs b/src/SubLib/Core/Timing/SynchronizeOperator.cs
index d1db2ae..d5383f6 100644
--- a/src/SubLib/Core/Timing/SynchronizeOperator.cs
+++ b/src/SubLib/Core/Timing/SynchronizeOperator.cs
@@ -37,10 +37,8 @@ public class SynchronizeOperator {
 		if (!AreSyncArgsValid(pointsToUse))
 			return false;
 
-		System.Console.WriteLine("Here");
 		SyncPoint previous = pointsToUse[0];
 		for (int index = 1 ; index < pointsToUse.Count ; index++) {
-			System.Console.WriteLine(index);
 			SyncPoint current = pointsToUse[index];
 			SyncUtil.Sync(subtitles, previous, current);
 		
@@ -81,10 +79,9 @@ public class SynchronizeOperator {
 	}
 	
 	private bool AreSyncArgsValid (SyncPoints syncPoints) {
-		System.Console.WriteLine(1);
 		if ((syncPoints == null) || (syncPoints.Count < 2) || (syncPoints[syncPoints.Count - 1].SubtitleNumber > subtitles.Collection.Count))
 			return false;
-		System.Console.WriteLine(2);
+
 		SyncPoint previous = syncPoints[0];
 		for (int index = 1 ; index < syncPoints.Count ; index++) {
 			SyncPoint current = syncPoints[index];



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]