Remove some extra parameters from debug outputs

OK Fred Kiefer



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38567 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Sebastian Reitenbach 2015-05-26 17:08:41 +00:00
parent e22b248f7e
commit e097f5d773
3 changed files with 22 additions and 16 deletions

View file

@ -1,3 +1,9 @@
2015-05-26: Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>
* Source/NSView.m
* Source/NSTextContainer.m
remove unused parameters from debug outputs
2015-05-22 Fred Kiefer <FredKiefer@gmx.de>
* ChangeLog: Correct version number in last commit.

View file

@ -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;
}

View file

@ -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;
}