Removing CPLog's from cibs.

This commit is contained in:
Ross Boucher committed 2009-05-08 12:35:17 -07:00
1 parent bda437985e
commit 1497944eff
3 files changed
+6 -16

No files matched your search

-13
View File
@@ -40,10 +40,6 @@ var _CPCibConnectorSourceKey = @"_CPCibConnectorSourceKey",
_source = [aCoder decodeObjectForKey:_CPCibConnectorSourceKey];
_destination = [aCoder decodeObjectForKey:_CPCibConnectorDestinationKey];
_label = [aCoder decodeObjectForKey:_CPCibConnectorLabelKey];
#if DEBUG
CPLog("Connection from " + [_source description] + " to " + [_destination description] + " and label " + _label + " decoded.");
#endif
}
return self;
@@ -64,11 +60,6 @@ var _CPCibConnectorSourceKey = @"_CPCibConnectorSourceKey",
- (void)establishConnection
{
#if DEBUG
CPLog('[' + [_source description] + " setTarget: " + [_destination description] + ']');
CPLog('[' + [_source description] + " setAction: " + _label + ']');
#endif
var selectorName = _label;
if (![selectorName hasSuffix:@":"])
@@ -106,10 +97,6 @@ var _CPCibConnectorSourceKey = @"_CPCibConnectorSourceKey",
- (void)establishConnection
{
#if DEBUG
CPLog([_source description] + " setValue: " + [_destination description] + " forKey: " + _label);
#endif
[_source setValue:_destination forKey:_label];
}
+4 -2
View File
@@ -41,10 +41,12 @@ var _CPCibCustomObjectClassName = @"_CPCibCustomObjectClassName";
- (id)_cibInstantiate
{
var theClass = CPClassFromString(_className);
#if DEBUG
if (!theClass)
CPLog("Unknown class \"" + _className + "\" in cib file");
#endif
if (theClass === [CPApplication class])
return [CPApplication sharedApplication];
+2 -1
View File
@@ -78,8 +78,9 @@ var _CPCibCustomViewClassNameKey = @"_CPCibCustomViewClassNameKey";
// FIXME: Should we instead throw an exception?
if (!theClass)
{
#if DEBUG
CPLog("Unknown class \"" + _className + "\" in cib file, using CPView instead.");
#endif
theClass = [CPView class];
}