diff --git a/MidtransKit/MidtransKit/VTCreditCard+Utilities.h b/MidtransKit/MidtransKit/VTCreditCard+Utilities.h deleted file mode 100644 index f0bd1a04e..000000000 --- a/MidtransKit/MidtransKit/VTCreditCard+Utilities.h +++ /dev/null @@ -1,17 +0,0 @@ -// -// VTCreditCard+Utilities.h -// MidtransKit -// -// Created by Nanang Rafsanjani on 4/25/16. -// Copyright © 2016 Veritrans. All rights reserved. -// - -#import - -@interface VTCreditCard (Utilities) - -- (UIImage *)cardIcon; -- (UIImage *)cardIconDark; -- (NSString *)cardName; - -@end diff --git a/MidtransKit/MidtransKit/VTCreditCard+Utilities.m b/MidtransKit/MidtransKit/VTCreditCard+Utilities.m deleted file mode 100644 index 011a33013..000000000 --- a/MidtransKit/MidtransKit/VTCreditCard+Utilities.m +++ /dev/null @@ -1,43 +0,0 @@ -// -// VTCreditCard+Utilities.m -// MidtransKit -// -// Created by Nanang Rafsanjani on 4/25/16. -// Copyright © 2016 Veritrans. All rights reserved. -// - -#import "VTCreditCard+Utilities.h" -#import "VTClassHelper.h" - -@implementation VTCreditCard (Utilities) - -- (UIImage *)cardIcon { - VTCreditCardType type = [VTCreditCard typeWithNumber:self.number]; - switch (type) { - case VTCreditCardTypeVisa: - return [UIImage imageNamed:@"Visa" inBundle:VTBundle compatibleWithTraitCollection:nil]; - case VTCreditCardTypeJCB: - return [UIImage imageNamed:@"JCB" inBundle:VTBundle compatibleWithTraitCollection:nil]; - case VTCreditCardTypeMasterCard: - return [UIImage imageNamed:@"MasterCard" inBundle:VTBundle compatibleWithTraitCollection:nil]; - case VTCreditCardTypeUnknown: - return nil; - } -} - -- (UIImage *)cardIconDark { - VTCreditCardType type = [VTCreditCard typeWithNumber:self.number]; - switch (type) { - case VTCreditCardTypeVisa: - return [UIImage imageNamed:@"VisaDark" inBundle:VTBundle compatibleWithTraitCollection:nil]; - case VTCreditCardTypeJCB: - return [UIImage imageNamed:@"JCBDark" inBundle:VTBundle compatibleWithTraitCollection:nil]; - case VTCreditCardTypeMasterCard: - return [UIImage imageNamed:@"MasterCard" inBundle:VTBundle compatibleWithTraitCollection:nil]; - case VTCreditCardTypeUnknown: - return nil; - } -} - - -@end