diff --git a/ChangeLog b/ChangeLog index 978635c49..2abec1c7d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2015-05-26: Sebastian Reitenbach + + * Source/NSView.m + * Source/NSTextContainer.m + remove unused parameters from debug outputs + 2015-05-22 Fred Kiefer * ChangeLog: Correct version number in last commit. diff --git a/Source/NSTextContainer.m b/Source/NSTextContainer.m index 800dd2abf..5d1fee8a6 100644 --- a/Source/NSTextContainer.m +++ b/Source/NSTextContainer.m @@ -96,12 +96,12 @@ use bounds rectangle instead of frame? */ NSDebugLLog(@"NSText", @"NSTextContainer initWithContainerSize"); if (aSize.width < 0) { - NSWarnMLog(@"given negative width", 0); + NSWarnMLog(@"given negative width"); aSize.width = 0; } if (aSize.height < 0) { - NSWarnMLog(@"given negative height", 0); + NSWarnMLog(@"given negative height"); aSize.height = 0; } _layoutManager = nil; @@ -246,12 +246,12 @@ framework intact. if (aSize.width < 0) { - NSWarnMLog(@"given negative width", 0); + NSWarnMLog(@"given negative width"); aSize.width = 0; } if (aSize.height < 0) { - NSWarnMLog(@"given negative height", 0); + NSWarnMLog(@"given negative height"); aSize.height = 0; } diff --git a/Source/NSView.m b/Source/NSView.m index 23891432d..e0f9fb2c7 100644 --- a/Source/NSView.m +++ b/Source/NSView.m @@ -595,12 +595,12 @@ GSSetDragTypes(NSView* obj, NSArray *types) if (frameRect.size.width < 0) { - NSWarnMLog(@"given negative width", 0); + NSWarnMLog(@"given negative width"); frameRect.size.width = 0; } if (frameRect.size.height < 0) { - NSWarnMLog(@"given negative height", 0); + NSWarnMLog(@"given negative height"); frameRect.size.height = 0; } _frame = frameRect; // Set frame rectangle @@ -1178,12 +1178,12 @@ static NSSize _computeScale(NSSize fs, NSSize bs) if (frameRect.size.width < 0) { - NSWarnMLog(@"given negative width", 0); + NSWarnMLog(@"given negative width"); frameRect.size.width = 0; } if (frameRect.size.height < 0) { - NSWarnMLog(@"given negative height", 0); + NSWarnMLog(@"given negative height"); frameRect.size.height = 0; } @@ -1259,12 +1259,12 @@ static NSSize _computeScale(NSSize fs, NSSize bs) NSRect newFrame = _frame; if (newSize.width < 0) { - NSWarnMLog(@"given negative width", 0); + NSWarnMLog(@"given negative width"); newSize.width = 0; } if (newSize.height < 0) { - NSWarnMLog(@"given negative height", 0); + NSWarnMLog(@"given negative height"); newSize.height = 0; } if (NSEqualSizes(_frame.size, newSize) == NO) @@ -1385,12 +1385,12 @@ static NSSize _computeScale(NSSize fs, NSSize bs) NSDebugLLog(@"NSView", @"setBounds %@", NSStringFromRect(aRect)); if (aRect.size.width < 0) { - NSWarnMLog(@"given negative width", 0); + NSWarnMLog(@"given negative width"); aRect.size.width = 0; } if (aRect.size.height < 0) { - NSWarnMLog(@"given negative height", 0); + NSWarnMLog(@"given negative height"); aRect.size.height = 0; } @@ -1479,12 +1479,12 @@ static NSSize _computeScale(NSSize fs, NSSize bs) if (newSize.width < 0) { - NSWarnMLog(@"given negative width", 0); + NSWarnMLog(@"given negative width"); newSize.width = 0; } if (newSize.height < 0) { - NSWarnMLog(@"given negative height", 0); + NSWarnMLog(@"given negative height"); newSize.height = 0; } @@ -1570,12 +1570,12 @@ static NSSize _computeScale(NSSize fs, NSSize bs) { if (newSize.width < 0) { - NSWarnMLog(@"given negative width", 0); + NSWarnMLog(@"given negative width"); newSize.width = 0; } if (newSize.height < 0) { - NSWarnMLog(@"given negative height", 0); + NSWarnMLog(@"given negative height"); newSize.height = 0; }