Skip to content

Commit

Permalink
Removed debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
ikkentim committed Jun 6, 2015
1 parent 6bda4e5 commit e8274ff
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 33 deletions.
13 changes: 0 additions & 13 deletions tool_src/TileCutter/MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions tool_src/TileCutter/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,7 @@ private async void startButton_Click(object sender, EventArgs e)
OutputName = Path.GetFileNameWithoutExtension(inputPathTextBox.Text),
SkipExisting = skipExistingcheckBox.Checked,
MapSize = Convert.ToDouble(mapSizeNumericUpDown.Value),
PreprocessorResizeFactor = Convert.ToInt32(resizeFactorNumericUpDown.Value),
Debug = debugCheckBox.Checked
PreprocessorResizeFactor = Convert.ToInt32(resizeFactorNumericUpDown.Value)
};

var processor = GetProcessor();
Expand Down
1 change: 0 additions & 1 deletion tool_src/TileCutter/Processors/InstructionSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ internal struct InstructionSet
public int MinimumZoom { get; set; }
public int MaximumZoom { get; set; }
public bool SkipExisting { get; set; }
public bool Debug { get; set; }
public int PreprocessorResizeFactor { get; set; }
public double MapSize { get; set; }
}
Expand Down
18 changes: 1 addition & 17 deletions tool_src/TileCutter/Processors/OpenStreetMaps.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ public async Task<string> StartProcessing(InstructionSet instructions)

return await Task<string>.Run(() =>
{
if (instructions.Debug)
MessageBox.Show("[debug] Current culture: " + Thread.CurrentThread.CurrentCulture + ".");
if (doResize)
{
XDocument doc = XDocument.Load(inputPath);
Expand All @@ -102,18 +100,9 @@ public async Task<string> StartProcessing(InstructionSet instructions)
}
doc.Save(tempPath);
if (instructions.Debug)
MessageBox.Show("[debug] " + nodeCount + " nodes processed. Storing file to \"" + tempPath +
"\".");
inputPath = tempPath;
}
else
{
if (instructions.Debug)
MessageBox.Show("[debug] Not resizing.");
}
MapCSSInterpreter mapCss;
RenderingInstance renderer;
Expand All @@ -132,8 +121,6 @@ public async Task<string> StartProcessing(InstructionSet instructions)
mapCssStream.Dispose();
}
if (instructions.Debug)
MessageBox.Show("[debug] MapCSS was successfully opened.");
FileStream inputStream = new FileInfo(inputPath).OpenRead();
try
{
Expand All @@ -148,9 +135,6 @@ public async Task<string> StartProcessing(InstructionSet instructions)
inputStream.Dispose();
}
if (instructions.Debug)
MessageBox.Show("[debug] OSM was successfully opened.");
int processed = 0;
for (int zoom = minZoom; zoom <= maxZoom; zoom++)
{
Expand Down

0 comments on commit e8274ff

Please sign in to comment.