[iOS] remove unused imports

This commit is contained in:
Aleksey Belouosv 2019-10-14 14:05:01 +03:00 committed by Alexander Boriskov
parent 6febaa6072
commit ecd6dce8de
65 changed files with 0 additions and 258 deletions

View file

@ -1,5 +1,4 @@
#import "MWMMyTarget.h"
#import <MyTargetSDK/MTRGManager.h>
#import <MyTargetSDK/MTRGNativeAppwallAd.h>
#import "MWMSettings.h"
#import "MapsAppDelegate.h"

View file

@ -2,7 +2,6 @@
#import "MWMSearch.h"
#include "platform/localization.hpp"
#include "search/result.hpp"
#include "map/everywhere_search_callback.hpp"
@interface MWMCarPlaySearchResultObject()
@property(assign, nonatomic, readwrite) NSInteger originalRow;

View file

@ -1,7 +1,6 @@
#import "MWMCarPlaySearchService.h"
#import "MWMCarPlaySearchResultObject.h"
#import "MWMSearch.h"
#import <CarPlay/CarPlay.h>
API_AVAILABLE(ios(12.0))
@interface MWMCarPlaySearchService ()<MWMSearchObserver>

View file

@ -14,13 +14,8 @@
#include "partners_api/downloader_promo.hpp"
#include "storage/country_info_getter.hpp"
#include "platform/local_country_file_utils.hpp"
#include "platform/network_policy.hpp"
#include "platform/preferred_languages.hpp"
#include "base/assert.hpp"
namespace {
CGSize constexpr kInitialDialogSize = {200, 200};

View file

@ -12,9 +12,6 @@
#import <CoreApi/AppInfo.h>
#include "platform/platform.hpp"
#include "platform/settings.hpp"
#include "base/macros.hpp"
// If you have a "missing header error" here, then please run configure.sh script in the root repo folder.
#import "private.h"

View file

@ -1,8 +1,6 @@
#import "WebViewController.h"
#include <CoreApi/Framework.h>
#include "base/assert.hpp"
@interface WebViewController()
@property(copy, nonatomic) MWMVoidBlock onFailure;

View file

@ -4,8 +4,6 @@
#include "editor/osm_editor.hpp"
#include "platform/platform.hpp"
@implementation MWMEditorHelper
+ (void)uploadEdits:(void (^)(UIBackgroundFetchResult))completionHandler

View file

@ -2,9 +2,6 @@
#include <CoreApi/Framework.h>
#include "storage/storage.hpp"
#include "storage/storage_defines.hpp"
namespace
{
using Observer = id<MWMFrameworkObserver>;

View file

@ -3,17 +3,12 @@
#import "MWMLocationObserver.h"
#import "MWMFrameworkListener.h"
#import "MWMCoreRouterType.h"
#import "MWMRouterResultCode.h"
#import "MWMRoutePoint+CPP.h"
#import "MWMCoreUnits.h"
#import "SwiftBridge.h"
#include <CoreApi/Framework.h>
#include "routing/following_info.hpp"
#include "routing/turns.hpp"
#include "routing/routing_session.hpp"
@interface MWMRoutingManager()<MWMFrameworkRouteBuilderObserver, MWMLocationObserver>
@property(nonatomic, readonly) RoutingManager & rm;
@property(strong, nonatomic) NSHashTable<id<MWMRoutingManagerListener>> *listeners;

View file

@ -1,7 +1,6 @@
#import "MWMPurchaseValidation.h"
#include <CoreApi/Framework.h>
#include "private.h"
static NSMutableDictionary<NSString *, NSMutableArray<ValidatePurchaseCallback> *> *callbacks = [NSMutableDictionary dictionary];

View file

@ -1,14 +1,10 @@
#import "MWMLocationManager.h"
#import <Pushwoosh/PushNotificationManager.h>
#import "MWMAlertViewController.h"
#import "MWMGeoTrackerCore.h"
#import "MWMLocationObserver.h"
#import "MWMLocationPredictor.h"
#import "MWMRouter.h"
#import "MapsAppDelegate.h"
#import "Statistics.h"
#import "SwiftBridge.h"
#import "3party/Alohalytics/src/alohalytics_objc.h"
#include <CoreApi/Framework.h>

View file

@ -1,7 +1,6 @@
#import "MWMEye.h"
#include <CoreApi/Framework.h>
#include "metrics/eye.hpp"
@implementation MWMEye

View file

@ -1,7 +1,6 @@
#import "MWMPushNotifications.h"
#import <Crashlytics/Crashlytics.h>
#import <Pushwoosh/PushNotificationManager.h>
#import <UserNotifications/UserNotifications.h>
#import "Statistics.h"
#include "platform/marketing_service.hpp"
@ -11,9 +10,6 @@
// If you have a "missing header error" here, then please run configure.sh script in the root repo
// folder.
#import "private.h"
#include <string>
namespace
{

View file

@ -5,9 +5,6 @@
#include "platform/measurement_utils.hpp"
#include "geometry/mercator.hpp"
#include "geometry/point2d.hpp"
@interface MWMRoutePoint ()
@property(nonatomic, readonly) m2::PointD point;

View file

@ -4,31 +4,19 @@
#import "MWMCoreRouterType.h"
#import "MWMFrameworkListener.h"
#import "MWMLocationHelpers.h"
#import "MWMLocationManager.h"
#import "MWMLocationObserver.h"
#import "MWMMapViewControlsManager.h"
#import "MWMNavigationDashboardManager+Entity.h"
#import "MWMRoutePoint+CPP.h"
#import "MWMRouterRecommendation.h"
#import "MWMStorage.h"
#import "MapViewController.h"
#import "MapsAppDelegate.h"
#import "Statistics.h"
#import "SwiftBridge.h"
#import "UIImage+RGBAData.h"
#include <CoreApi/Framework.h>
#include "routing/following_info.hpp"
#include "indexer/feature_altitude.hpp"
#include "platform/local_country_file_utils.hpp"
#include <cstdint>
#include <memory>
#include <vector>
using namespace routing;
@interface MWMRouter ()<MWMLocationObserver, MWMFrameworkRouteBuilderObserver>

View file

@ -1,25 +1,12 @@
#import "MWMSearch.h"
#import <Crashlytics/Crashlytics.h>
#import "MWMBannerHelpers.h"
#import "MWMFrameworkListener.h"
#import "SwiftBridge.h"
#include <CoreApi/Framework.h>
#include "partners_api/booking_availability_params.hpp"
#include "partners_api/ads_engine.hpp"
#include "map/everywhere_search_params.hpp"
#include "map/viewport_search_params.hpp"
#include "map/booking_filter_params.hpp"
#include "platform/network_policy.hpp"
#include <chrono>
#include <memory>
#include <utility>
namespace
{
using Observer = id<MWMSearchObserver>;

View file

@ -2,13 +2,10 @@
#import "MWMCoreUnits.h"
#import "MWMMapViewControlsManager.h"
#import "SwiftBridge.h"
#import "3party/Alohalytics/src/alohalytics_objc.h"
#import "Flurry.h"
#include <CoreApi/Framework.h>
#include "platform/settings.hpp"
namespace
{
char const * kAdServerForbiddenKey = "AdServerForbidden";

View file

@ -3,12 +3,9 @@
#import "MWMRouter.h"
#include <CoreApi/Framework.h>
#import <CoreApi/MWMFrameworkHelper.h>
#include "storage/storage_helpers.hpp"
#include <numeric>
using namespace storage;
@implementation MWMStorage

View file

@ -2,7 +2,6 @@
#import "MWMPurchaseValidation.h"
#include <CoreApi/Framework.h>
#include "private.h"
#import <StoreKit/StoreKit.h>

View file

@ -1,5 +1,4 @@
#import <AVFoundation/AVFoundation.h>
#import <Crashlytics/Crashlytics.h>
#import "MWMRouter.h"
#import "MWMTextToSpeech+CPP.h"
#import "Statistics.h"
@ -11,9 +10,6 @@
#include "platform/languages.hpp"
#include "base/assert.hpp"
#include "base/logging.hpp"
using namespace locale_translator;
namespace

View file

@ -1,12 +1,8 @@
#import "MWMAuthorizationViewModel.h"
#import <FBSDKCoreKit/FBSDKAccessToken.h>
#import <GoogleSignIn/GoogleSignIn.h>
#import "Statistics.h"
#include <CoreApi/Framework.h>
#include <memory>
@implementation MWMAuthorizationViewModel
+ (NSURL * _Nullable)phoneAuthURL

View file

@ -4,9 +4,6 @@
#import "MWMStorage.h"
#import "Statistics.h"
#import "SwiftBridge.h"
#import "UIButton+RuntimeAttributes.h"
#include <unordered_set>
namespace
{

View file

@ -1,6 +1,5 @@
#import "MWMBottomMenuCollectionViewCell.h"
#import "SwiftBridge.h"
#import "UIImageView+Coloring.h"
@interface MWMBottomMenuCollectionViewCell ()

View file

@ -14,8 +14,6 @@
#include <CoreApi/Framework.h>
#include "platform/platform.hpp"
extern NSString * const kAlohalyticsTapEventKey;
extern NSString * const kSearchStateKey;

View file

@ -12,27 +12,9 @@
#import "MWMRouter.h"
#import "MWMSearchManager+Filter.h"
#import "Statistics.h"
#import "UIKitCategories.h"
#import "SwiftBridge.h"
#include "map/discovery/discovery_client_params.hpp"
#include "map/search_product_info.hpp"
#include "search/result.hpp"
#include "partners_api/locals_api.hpp"
#include "partners_api/promo_api.hpp"
#include "platform/localization.hpp"
#include "platform/platform.hpp"
#include "geometry/point2d.hpp"
#include "base/assert.hpp"
#include <functional>
#include <utility>
#include <vector>
using namespace std;
using namespace std::placeholders;

View file

@ -11,25 +11,8 @@
#include "map/place_page_info.hpp"
#include "partners_api/locals_api.hpp"
#include "search/result.hpp"
#include "platform/localization.hpp"
#include "platform/measurement_utils.hpp"
#include "geometry/distance_on_sphere.hpp"
#include "geometry/mercator.hpp"
#include "geometry/point2d.hpp"
#include "base/logging.hpp"
#include <algorithm>
#include <iterator>
#include <string>
#include <utility>
#include <tuple>
using namespace std;
namespace discovery

View file

@ -4,7 +4,6 @@
#import "MWMDiscoveryHotelViewModel.h"
#import "MWMDiscoverySearchViewModel.h"
#import "MWMDiscoveryGuideViewModel.h"
#import "MWMRatingSummaryViewValueType.h"
#include "map/place_page_info.hpp"
@ -12,7 +11,6 @@
#include "platform/measurement_utils.hpp"
#include "geometry/distance_on_sphere.hpp"
#include "geometry/mercator.hpp"
using namespace discovery;

View file

@ -4,8 +4,6 @@
#include <CoreApi/Framework.h>
#include "storage/country_info_getter.hpp"
using namespace storage;
namespace

View file

@ -1,7 +1,6 @@
#import "MWMBaseMapDownloaderViewController.h"
#import "MWMButton.h"
#import "MWMFrameworkListener.h"
#import "MWMFrameworkObservers.h"
#import "MWMMapDownloaderAdsTableViewCell.h"
#import "MWMMapDownloaderCellHeader.h"
#import "MWMMapDownloaderDefaultDataSource.h"
@ -9,12 +8,10 @@
#import "MWMMapDownloaderLargeCountryTableViewCell.h"
#import "MWMMapDownloaderPlaceTableViewCell.h"
#import "MWMMapDownloaderSubplaceTableViewCell.h"
#import "MWMMapDownloaderTableViewCell.h"
#import "MWMMyTarget.h"
#import "MWMSegue.h"
#import "MWMStorage.h"
#import "SwiftBridge.h"
#import "UIViewController+Navigation.h"
#include <CoreApi/Framework.h>

View file

@ -2,7 +2,6 @@
#import "MWMMapDownloaderMode.h"
#import "MWMMapViewControlsManager.h"
#import "SwiftBridge.h"
#import "UIViewController+Navigation.h"
@implementation MWMNoMapsViewController

View file

@ -1,9 +1,6 @@
#import "MWMBookmarkColorViewController.h"
#import "Statistics.h"
#import "SwiftBridge.h"
#import "UIViewController+Navigation.h"
#include <array>
namespace
{

View file

@ -6,8 +6,6 @@
#import "MWMPlacePageData.h"
#import "SelectSetVC.h"
#import "SwiftBridge.h"
#import "UIImageView+Coloring.h"
#import "UIViewController+Navigation.h"
#include <CoreApi/Framework.h>

View file

@ -1,8 +1,6 @@
#import "MWMEditorAdditionalNamesTableViewController.h"
#import "MWMTableViewCell.h"
#include "indexer/editable_map_object.hpp"
@interface MWMEditorAdditionalNamesTableViewController ()
@property (nonatomic) NSInteger selectedLanguageCode;

View file

@ -1,6 +1,5 @@
#import "MWMEditorCategoryCell.h"
#import "MWMEditorCommon.h"
#import "UIImageView+Coloring.h"
namespace
{

View file

@ -1,7 +1,6 @@
#import "MWMEditorTextTableViewCell.h"
#import "MWMEditorCommon.h"
#import "UIImageView+Coloring.h"
#import "UITextField+RuntimeAttributes.h"
namespace
{

View file

@ -6,9 +6,6 @@
#include "indexer/cuisines.hpp"
#include "indexer/search_string_utils.hpp"
#include <algorithm>
#include <utility>
namespace
{
NSString * const kCuisineEditorCell = @"MWMCuisineEditorTableViewCell";

View file

@ -10,7 +10,6 @@
#import "MWMEditorAdditionalNamesTableViewController.h"
#import "MWMEditorCategoryCell.h"
#import "MWMEditorCellType.h"
#import "MWMEditorCommon.h"
#import "MWMEditorNotesFooter.h"
#import "MWMEditorSelectTableViewCell.h"
#import "MWMEditorSwitchTableViewCell.h"
@ -25,11 +24,6 @@
#include <CoreApi/Framework.h>
#include "editor/osm_editor.hpp"
#include "indexer/classificator.hpp"
#include "indexer/feature_source.hpp"
#include "platform/localization.hpp"
namespace

View file

@ -6,7 +6,6 @@
#import "MWMTableViewCell.h"
#import "Statistics.h"
#import "SwiftBridge.h"
#import "UIViewController+Navigation.h"
#include <CoreApi/Framework.h>

View file

@ -4,18 +4,8 @@
#include <CoreApi/Framework.h>
#include "indexer/classificator.hpp"
#include "platform/localization.hpp"
#include "editor/new_feature_categories.hpp"
#include <algorithm>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
using namespace osm;
namespace

View file

@ -1,6 +1,5 @@
#import "MWMOpeningHoursAddScheduleTableViewCell.h"
#import "MWMOpeningHoursCommon.h"
#import "MWMOpeningHoursEditorViewController.h"
@interface MWMOpeningHoursAddScheduleTableViewCell ()

View file

@ -1,8 +1,6 @@
#import "MWMOpeningHoursDaysSelectorTableViewCell.h"
#import "UIImageView+Coloring.h"
#include "3party/opening_hours/opening_hours.hpp"
@interface MWMOpeningHoursDaysSelectorTableViewCell ()
@property (nonatomic) IBOutletCollection(UIButton) NSArray * buttons;

View file

@ -5,11 +5,8 @@
#import "MWMOpeningHoursClosedSpanTableViewCell.h"
#import "MWMOpeningHoursDaysSelectorTableViewCell.h"
#import "MWMOpeningHoursDeleteScheduleTableViewCell.h"
#import "MWMOpeningHoursModel.h"
#import "MWMOpeningHoursSection.h"
#import "MWMOpeningHoursTimeSelectorTableViewCell.h"
#import "MWMOpeningHoursTimeSpanTableViewCell.h"
#import "MWMTextView.h"
#import "SwiftBridge.h"
extern NSDictionary * const kMWMOpeningHoursEditorTableCells = @{

View file

@ -1,8 +1,6 @@
#import "MWMOpeningHoursCommon.h"
#import "MWMOpeningHoursModel.h"
#import "MWMOpeningHoursSection.h"
#include "editor/opening_hours_ui.hpp"
#include "editor/ui2oh.hpp"
extern UITableViewRowAnimation const kMWMOpeningHoursEditorRowAnimation = UITableViewRowAnimationFade;

View file

@ -3,10 +3,6 @@
#import "MWMOpeningHoursTableViewCell.h"
#import "SwiftBridge.h"
#include "editor/opening_hours_ui.hpp"
#include "3party/opening_hours/opening_hours.hpp"
extern NSDictionary * const kMWMOpeningHoursEditorTableCells;
extern UITableViewRowAnimation const kMWMOpeningHoursEditorRowAnimation;

View file

@ -6,7 +6,6 @@
#import "Statistics.h"
#include <CoreApi/Framework.h>
#import <CoreApi/MWMFrameworkHelper.h>
using namespace storage;

View file

@ -1,29 +1,15 @@
#import "MWMPlacePageData.h"
#import "LocaleTranslator.h"
#import "MWMDiscoveryCityGalleryObjects.h"
#import "MWMDiscoveryGuideViewModel.h"
#import "MWMBannerHelpers.h"
#import "MWMUGCViewModel.h"
#import "Statistics.h"
#import <CoreApi/CoreApi.h>
#include "local_ads/event.hpp"
#include "map/bookmark_helpers.hpp"
#include "map/utils.hpp"
#include "platform/preferred_languages.hpp"
#include "partners_api/booking_api.hpp"
#include "partners_api/booking_block_params.hpp"
#include "partners_api/promo_api.hpp"
#include "3party/opening_hours/opening_hours.hpp"
#include <string>
#include <utility>
using namespace place_page;
namespace

View file

@ -1,37 +1,23 @@
#import "MWMPlacePageManager.h"
#import "CLLocation+Mercator.h"
#import "MWMAPIBar.h"
#import "MWMActivityViewController.h"
//#import "MWMBookmarksManager.h"
#import "MWMFrameworkListener.h"
#import "MWMFrameworkObservers.h"
#import "MWMLocationHelpers.h"
#import "MWMLocationManager.h"
#import "MWMLocationObserver.h"
#import "MWMPlacePageData.h"
#import "MWMPlacePageLayout.h"
#import "MWMRoutePoint+CPP.h"
#import "MWMRouter.h"
#import "MWMSearchManager+Filter.h"
#import "MWMStorage.h"
#import "MWMUGCViewModel.h"
#import "MapViewController.h"
#import "Statistics.h"
#import "SwiftBridge.h"
#import <CoreApi/CoreApi.h>
#include "map/bookmark.hpp"
#include "map/utils.hpp"
#include "geometry/distance_on_sphere.hpp"
#include "base/assert.hpp"
#include "base/logging.hpp"
#include "base/stl_helpers.hpp"
#include <utility>
namespace
{
void logSponsoredEvent(MWMPlacePageData * data, NSString * eventName)

View file

@ -1,7 +1,6 @@
#import "MWMPlacePageManagerHelper.h"
#import "MWMMapViewControlsManager.h"
#import "MWMPlacePageManager.h"
#import "MWMUGCReviewSource.h"
@interface MWMMapViewControlsManager ()

View file

@ -1,8 +1,6 @@
#import "MWMOpeningHours.h"
#import "MWMOpeningHoursCommon.h"
#include "3party/opening_hours/opening_hours.hpp"
#include "editor/opening_hours_ui.hpp"
#include "editor/ui2oh.hpp"
using namespace editor;

View file

@ -4,9 +4,6 @@
#import "MWMTableViewCell.h"
#import "SwiftBridge.h"
#include <array>
#include <vector>
@interface MWMPlacePageData()
- (std::vector<place_page::MetainfoRows> &)mutableMetainfoRows;

View file

@ -2,11 +2,8 @@
#import <CoreApi/MWMCommon.h>
#import "MWMOpeningHoursCommon.h"
#import "MWMPlacePageOpeningHoursDayView.h"
#import "Statistics.h"
#import "UIImageView+Coloring.h"
#include "3party/opening_hours/opening_hours.hpp"
#include "editor/opening_hours_ui.hpp"
#include "editor/ui2oh.hpp"
using namespace editor;

View file

@ -1,15 +1,10 @@
#import "MWMPlacePageRegularCell.h"
#import "MWMLocationManager.h"
#import "MapViewController.h"
#import "MapsAppDelegate.h"
#import "Statistics.h"
#import "UIImageView+Coloring.h"
#include "local_ads/event.hpp"
#include "platform/measurement_utils.hpp"
#include "platform/settings.hpp"
@interface MWMPlacePageRegularCell ()<UITextViewDelegate>
@property(weak, nonatomic, readwrite) IBOutlet UIImageView * icon;

View file

@ -18,12 +18,9 @@
#import "MWMiPhonePlacePageLayoutImpl.h"
#import "MapViewController.h"
#import "SwiftBridge.h"
#import "Statistics.h"
#include "partners_api/booking_api.hpp"
#include "storage/storage_defines.hpp"
#import <CoreApi/CoreApi.h>
namespace

View file

@ -1,5 +1,4 @@
#import "MWMPPView.h"
#import "MWMPlacePageActionBar.h"
#import "SwiftBridge.h"
namespace

View file

@ -2,10 +2,6 @@
#import "MWMPlacePageData.h"
#import "SwiftBridge.h"
#include "ugc/types.hpp"
#include <chrono>
using namespace place_page;
namespace

View file

@ -4,7 +4,6 @@
#include <CoreApi/Framework.h>
#include "platform/network_policy.hpp"
#include "platform/preferred_languages.hpp"
@implementation MWMPromoApi

View file

@ -1,6 +1,5 @@
#import "MWMSearchChangeModeView.h"
#import "MWMButton.h"
#import "MWMSearch.h"
#import "UIButton+RuntimeAttributes.h"
extern NSString * const kSearchStateKey;

View file

@ -1,6 +1,5 @@
#import "MWMSearch.h"
#import "MWMSearchManager+Filter.h"
#import "Statistics.h"
#import <objc/runtime.h>
@interface MWMSearchManager ()

View file

@ -7,11 +7,9 @@
#import "MWMSearchChangeModeView.h"
#import "MWMSearchManager+Filter.h"
#import "MWMSearchManager+Layout.h"
#import "MWMSearchTableViewController.h"
#import "MapViewController.h"
#import "Statistics.h"
#import "SwiftBridge.h"
#import "3party/Alohalytics/src/alohalytics_objc.h"
extern NSString * const kAlohalyticsTapEventKey;
extern NSString * const kSearchStateKey = @"SearchStateKey";

View file

@ -3,10 +3,6 @@
#include <CoreApi/Framework.h>
#include "base/logging.hpp"
#include <string>
@interface MWMSearchCell ()
@property (weak, nonatomic) IBOutlet UILabel * titleLabel;

View file

@ -4,17 +4,9 @@
#include "map/place_page_info.hpp"
#include "search/result.hpp"
#include "indexer/classificator.hpp"
#include "geometry/mercator.hpp"
#include "platform/localization.hpp"
#include "platform/measurement_utils.hpp"
#include "defines.hpp"
namespace
{
bool PopularityHasHigherPriority(bool hasPosition, double distanceInMeters)

View file

@ -5,8 +5,6 @@
#import "Statistics.h"
#import "SwiftBridge.h"
#include "indexer/classificator.hpp"
#include "platform/localization.hpp"
namespace

View file

@ -4,8 +4,6 @@
#import "Statistics.h"
#import "SwiftBridge.h"
#import "WebViewController.h"
#import "3party/Alohalytics/src/alohalytics_objc.h"
extern NSString * const kAlohalyticsTapEventKey;

View file

@ -4,16 +4,9 @@
#import "MWMTextToSpeech+CPP.h"
#import "SwiftBridge.h"
#include "LocaleTranslator.h"
#import <CoreApi/CoreApi.h>
#include "routing/speed_camera_manager.hpp"
#include "map/gps_tracker.hpp"
#include "map/routing_manager.hpp"
#include "base/assert.hpp"
extern NSString * const kAlohalyticsTapEventKey;

View file

@ -3,23 +3,10 @@
#import "MWMTextToSpeech+CPP.h"
#import "Statistics.h"
#import "SwiftBridge.h"
#import "WebViewController.h"
#include <CoreApi/Framework.h>
#include "LocaleTranslator.h"
#include "routing/speed_camera_manager.hpp"
#include "map/routing_manager.hpp"
#include "base/assert.hpp"
#include "base/stl_helpers.hpp"
#include <algorithm>
#include <memory>
#include <type_traits>
#include <unordered_map>
using namespace locale_translator;
using namespace routing;
using namespace std;