Removed “private” header

Instead of exposing these methods in a private header that winds up triggering warnings publicly, just redeclare the methods in a category. Since this is a test app, we’ll catch any issues that arise from refactoring simply by testing.

Fixes #1579.
This commit is contained in:
Minh Nguyễn
2015-05-17 00:11:45 -07:00
committed by John Firebaugh
parent 2c7d0567fa
commit 245823e474
3 changed files with 12 additions and 16 deletions

View File

@@ -1,14 +0,0 @@
#import <UIKit/UIKit.h>
@interface MGLMapView ()
#pragma mark - Debugging
/** Triggers another render pass even when it is not necessary. */
- (void)invalidate;
/** Returns whether the map view is currently loading or processing any assets required to render the map */
- (BOOL)isFullyLoaded;
@end

View File

@@ -1,12 +1,23 @@
#import "MBXBenchViewController.h"
#import <mbgl/ios/MGLMapView.h>
#import <mbgl/ios/private/MGLMapView_Private.h>
#include "locations.hpp"
#include <chrono>
@interface MGLMapView (MBXBenchmarkAdditions)
#pragma mark - Debugging
/** Triggers another render pass even when it is not necessary. */
- (void)invalidate;
/** Returns whether the map view is currently loading or processing any assets required to render the map */
- (BOOL)isFullyLoaded;
@end
@interface MBXBenchViewController () <MGLMapViewDelegate>
@property (nonatomic) MGLMapView *mapView;

View File

@@ -26,7 +26,6 @@
'sources': [
'./main.m',
'../../include/mbgl/ios/MGLMapView_private.h',
'./MBXBenchAppDelegate.h',
'./MBXBenchAppDelegate.m',
'./MBXBenchViewController.h',