Permalink
Browse files

Minor source formatting.

Changed some descriptions in comments.  Added some debug options to
project which are not enabled.
  • Loading branch information...
epreston committed Aug 18, 2011
1 parent 09cb532 commit ab2419f2d25111355d67af0ddc1c58f5e51eefdf
@@ -336,6 +336,8 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = PSHTreeGraph_Prefix.pch;
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_PARAMETER = NO;
INFOPLIST_FILE = "PSHTreeGraph-Info.plist";
PRODUCT_NAME = PSHTreeGraph;
};
@@ -350,6 +352,8 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = PSHTreeGraph_Prefix.pch;
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_PARAMETER = NO;
INFOPLIST_FILE = "PSHTreeGraph-Info.plist";
PRODUCT_NAME = PSHTreeGraph;
VALIDATE_PRODUCT = YES;
@@ -23,7 +23,7 @@ @implementation PSBaseLeafView
#pragma mark -
-#pragma mark Optimizations for Layer-Backed Mode
+#pragma mark Update Layer
- (void)updateLayerAppearanceToMatchContainerView {
CALayer *layer = [self layer];
@@ -254,7 +254,6 @@ - (PSBaseSubtreeView *)newGraphForModelNode:(id <PSTreeGraphModelNode> )modelNod
// Add the nodeView as a subview of the subtreeView.
[subtreeView addSubview:[subtreeView nodeView]];
-
// Register the subtreeView in our map table, so we can look it up by its modelNode.
[self setSubtreeView:subtreeView forModelNode:modelNode];
@@ -271,8 +270,6 @@ - (PSBaseSubtreeView *)newGraphForModelNode:(id <PSTreeGraphModelNode> )modelNod
}
}
-
-
} else {
[subtreeView release];
subtreeView = nil;
@@ -638,7 +635,7 @@ - (void)moveToNearestChild:(id)sender {
UIView *nodeView = [subtreeView nodeView];
if (nodeView) {
CGRect nodeViewFrame = [nodeView frame];
- id<PSTreeGraphModelNode> nearestChild = [subtreeView modelNodeClosestToY:CGRectGetMidY(nodeViewFrame)];
+ id <PSTreeGraphModelNode> nearestChild = [subtreeView modelNodeClosestToY:CGRectGetMidY(nodeViewFrame)];
if (nearestChild) {
[self setSelectedModelNodes:[NSSet setWithObject:nearestChild]];
}

0 comments on commit ab2419f

Please sign in to comment.