Skip to content

Commit

Permalink
Cleaning up
Browse files Browse the repository at this point in the history
Delete obsolete code
Remove unnecessary part of storyboard
  • Loading branch information
timbms committed Sep 13, 2024
1 parent 327de0a commit dbae41e
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 878 deletions.
48 changes: 0 additions & 48 deletions openHAB.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
93F8065027AE7A830035A6B0 /* SideMenu in Frameworks */ = {isa = PBXBuildFile; productRef = 93F8064F27AE7A830035A6B0 /* SideMenu */; };
93F8065327AE7B580035A6B0 /* SVGKit in Frameworks */ = {isa = PBXBuildFile; productRef = 93F8065227AE7B580035A6B0 /* SVGKit */; };
A07ED02E2402EE6E006588FE /* OpenHABWatchTracker.swift in Sources */ = {isa = PBXBuildFile; fileRef = A07ED02D2402EE6E006588FE /* OpenHABWatchTracker.swift */; };
A07EF7A02230C0A30040919F /* OpenHABClientCertificatesViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A07EF79F2230C0A20040919F /* OpenHABClientCertificatesViewController.swift */; };
A3F4C3A51A49A5940019A09F /* MainLaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = A3F4C3A41A49A5940019A09F /* MainLaunchScreen.xib */; };
B7D5ECE121499E55001B0EC6 /* MapViewTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = B7D5ECE021499E55001B0EC6 /* MapViewTableViewCell.swift */; };
DA0749DE23E0B5950057FA83 /* ColorPickerRow.swift in Sources */ = {isa = PBXBuildFile; fileRef = DA0749DD23E0B5950057FA83 /* ColorPickerRow.swift */; };
Expand Down Expand Up @@ -126,7 +125,6 @@
DAC9AF4924F966FA006DAE93 /* LazyView.swift in Sources */ = {isa = PBXBuildFile; fileRef = DAC9AF4824F966FA006DAE93 /* LazyView.swift */; };
DACB636227D3FC6500041931 /* error.png in Resources */ = {isa = PBXBuildFile; fileRef = DACB636127D3FC6500041931 /* error.png */; };
DACB636327D3FC6500041931 /* error.png in Resources */ = {isa = PBXBuildFile; fileRef = DACB636127D3FC6500041931 /* error.png */; };
DAEAA89B21E2611000267EA3 /* OpenHABNotificationsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DAEAA89A21E2611000267EA3 /* OpenHABNotificationsViewController.swift */; };
DAEAA89D21E6B06400267EA3 /* ReusableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = DAEAA89C21E6B06300267EA3 /* ReusableView.swift */; };
DAEAA89F21E6B16600267EA3 /* UITableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = DAEAA89E21E6B16600267EA3 /* UITableView.swift */; };
DAF0A28B2C56E3A300A14A6A /* RollershutterCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = DAF0A28A2C56E3A300A14A6A /* RollershutterCell.swift */; };
Expand All @@ -150,13 +148,9 @@
DAF4581823DC4A050018B495 /* ImageRow.swift in Sources */ = {isa = PBXBuildFile; fileRef = DAF4581723DC4A050018B495 /* ImageRow.swift */; };
DAF4581E23DC60020018B495 /* ImageRawRow.swift in Sources */ = {isa = PBXBuildFile; fileRef = DAF4581D23DC60020018B495 /* ImageRawRow.swift */; };
DAF4F6C0222734D300C24876 /* NewImageUITableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = DAF4F6BF222734D200C24876 /* NewImageUITableViewCell.swift */; };
DF05EF121D00696200DD646D /* DrawerUITableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF05EF111D00696200DD646D /* DrawerUITableViewCell.swift */; };
DF05FF231896BD2D00FF2F9B /* SelectionUITableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF05FF221896BD2D00FF2F9B /* SelectionUITableViewCell.swift */; };
DF06F1F618FE7A160011E7B9 /* OpenHABSelectionTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF06F1F518FE7A160011E7B9 /* OpenHABSelectionTableViewController.swift */; };
DF06F1FC18FEC2020011E7B9 /* ColorPickerViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF06F1FB18FEC2020011E7B9 /* ColorPickerViewController.swift */; };
DF1B302D1CF5C667009C921C /* OpenHABNotification.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF1B302C1CF5C667009C921C /* OpenHABNotification.swift */; };
DF4A022C1CF315BA006C3456 /* OpenHABDrawerTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF4A022B1CF315BA006C3456 /* OpenHABDrawerTableViewController.swift */; };
DF4A02421CF34096006C3456 /* OpenHABDrawerItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF4A02411CF34096006C3456 /* OpenHABDrawerItem.swift */; };
DF4B84041885A53700F34902 /* OpenHABDataObject.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF4B84031885A53700F34902 /* OpenHABDataObject.swift */; };
DF4B84071885AE0E00F34902 /* blankicon.png in Resources */ = {isa = PBXBuildFile; fileRef = DF4B84061885AE0E00F34902 /* blankicon.png */; };
DF4B84131886DAC400F34902 /* FrameUITableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF4B84121886DAC400F34902 /* FrameUITableViewCell.swift */; };
Expand Down Expand Up @@ -324,7 +318,6 @@
938BF9D224EFD0B700E6B52F /* UIViewController+Localization.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIViewController+Localization.swift"; sourceTree = "<group>"; };
938EDCE022C4FEB800661CA1 /* ScaleAspectFitImageView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ScaleAspectFitImageView.swift; sourceTree = "<group>"; };
A07ED02D2402EE6E006588FE /* OpenHABWatchTracker.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = OpenHABWatchTracker.swift; path = "openHABWatch Extension/OpenHABWatchTracker.swift"; sourceTree = SOURCE_ROOT; };
A07EF79F2230C0A20040919F /* OpenHABClientCertificatesViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OpenHABClientCertificatesViewController.swift; sourceTree = "<group>"; };
A3F4C3A41A49A5940019A09F /* MainLaunchScreen.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = MainLaunchScreen.xib; path = ../MainLaunchScreen.xib; sourceTree = "<group>"; };
B7D5ECE021499E55001B0EC6 /* MapViewTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MapViewTableViewCell.swift; sourceTree = "<group>"; };
DA0749DD23E0B5950057FA83 /* ColorPickerRow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ColorPickerRow.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -427,7 +420,6 @@
DAD488B3287DDDFE00414693 /* nb */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = nb; path = Resources/nb.lproj/Intents.strings; sourceTree = "<group>"; };
DAD488B4287DDDFF00414693 /* nb */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = nb; path = nb.lproj/Localizable.strings; sourceTree = "<group>"; };
DAD488B5287DDDFF00414693 /* nb */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = nb; path = nb.lproj/InfoPlist.strings; sourceTree = "<group>"; };
DAEAA89A21E2611000267EA3 /* OpenHABNotificationsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OpenHABNotificationsViewController.swift; sourceTree = "<group>"; };
DAEAA89C21E6B06300267EA3 /* ReusableView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReusableView.swift; sourceTree = "<group>"; };
DAEAA89E21E6B16600267EA3 /* UITableView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UITableView.swift; sourceTree = "<group>"; };
DAF0A28A2C56E3A300A14A6A /* RollershutterCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RollershutterCell.swift; sourceTree = "<group>"; };
Expand All @@ -449,13 +441,9 @@
DAF4581723DC4A050018B495 /* ImageRow.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ImageRow.swift; sourceTree = "<group>"; };
DAF4581D23DC60020018B495 /* ImageRawRow.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ImageRawRow.swift; sourceTree = "<group>"; };
DAF4F6BF222734D200C24876 /* NewImageUITableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NewImageUITableViewCell.swift; sourceTree = "<group>"; };
DF05EF111D00696200DD646D /* DrawerUITableViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DrawerUITableViewCell.swift; sourceTree = "<group>"; };
DF05FF221896BD2D00FF2F9B /* SelectionUITableViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SelectionUITableViewCell.swift; sourceTree = "<group>"; };
DF06F1F518FE7A160011E7B9 /* OpenHABSelectionTableViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OpenHABSelectionTableViewController.swift; sourceTree = "<group>"; };
DF06F1FB18FEC2020011E7B9 /* ColorPickerViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ColorPickerViewController.swift; sourceTree = "<group>"; };
DF1B302C1CF5C667009C921C /* OpenHABNotification.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OpenHABNotification.swift; sourceTree = "<group>"; };
DF4A022B1CF315BA006C3456 /* OpenHABDrawerTableViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OpenHABDrawerTableViewController.swift; sourceTree = "<group>"; };
DF4A02411CF34096006C3456 /* OpenHABDrawerItem.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OpenHABDrawerItem.swift; sourceTree = "<group>"; };
DF4B84031885A53700F34902 /* OpenHABDataObject.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OpenHABDataObject.swift; sourceTree = "<group>"; };
DF4B84061885AE0E00F34902 /* blankicon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = blankicon.png; sourceTree = "<group>"; };
DF4B84121886DAC400F34902 /* FrameUITableViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FrameUITableViewCell.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -782,16 +770,6 @@
path = Views;
sourceTree = "<group>";
};
DA6B2EF32C89D2F200DF77CF /* Obsolete */ = {
isa = PBXGroup;
children = (
DF06F1F518FE7A160011E7B9 /* OpenHABSelectionTableViewController.swift */,
A07EF79F2230C0A20040919F /* OpenHABClientCertificatesViewController.swift */,
DAEAA89A21E2611000267EA3 /* OpenHABNotificationsViewController.swift */,
);
name = Obsolete;
sourceTree = "<group>";
};
DAE238252806E5C800196467 /* Recovered References */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -846,29 +824,9 @@
path = Utils;
sourceTree = "<group>";
};
DF4A02291CF3157B006C3456 /* Drawer (obsolete) */ = {
isa = PBXGroup;
children = (
DF4A02411CF34096006C3456 /* OpenHABDrawerItem.swift */,
DF4A022B1CF315BA006C3456 /* OpenHABDrawerTableViewController.swift */,
DF4A022D1CF315D3006C3456 /* Widgets */,
);
name = "Drawer (obsolete)";
sourceTree = "<group>";
};
DF4A022D1CF315D3006C3456 /* Widgets */ = {
isa = PBXGroup;
children = (
DF05EF111D00696200DD646D /* DrawerUITableViewCell.swift */,
);
name = Widgets;
sourceTree = "<group>";
};
DF4B83FD18857FA100F34902 /* UI */ = {
isa = PBXGroup;
children = (
DF4A02291CF3157B006C3456 /* Drawer (obsolete) */,
DA6B2EF32C89D2F200DF77CF /* Obsolete */,
653B54C1285E714900298ECD /* OpenHABViewController.swift */,
653B54BF285C0AC700298ECD /* OpenHABRootViewController.swift */,
65570A7C2476D16A00D524EA /* OpenHABWebViewController.swift */,
Expand Down Expand Up @@ -1492,7 +1450,6 @@
DF06F1FC18FEC2020011E7B9 /* ColorPickerViewController.swift in Sources */,
1224F78F228A89FD00750965 /* WatchMessageService.swift in Sources */,
DAA42BAC21DC984A00244B2A /* WebUITableViewCell.swift in Sources */,
DF05EF121D00696200DD646D /* DrawerUITableViewCell.swift in Sources */,
DF4B84131886DAC400F34902 /* FrameUITableViewCell.swift in Sources */,
DF4B84161886EACA00F34902 /* GenericUITableViewCell.swift in Sources */,
935B484625342B8E00E44CF0 /* URL+Static.swift in Sources */,
Expand All @@ -1504,18 +1461,14 @@
DF4B84041885A53700F34902 /* OpenHABDataObject.swift in Sources */,
DAC65FC7236EDF3900F4501E /* SpinnerViewController.swift in Sources */,
DA9F81872C85020F00B47B72 /* RTFTextView.swift in Sources */,
DF4A02421CF34096006C3456 /* OpenHABDrawerItem.swift in Sources */,
DA6B2EF12C87B59000DF77CF /* NotificationsView.swift in Sources */,
DA50C7BF2B0A65300009F716 /* SliderWithSwitchSupportUITableViewCell.swift in Sources */,
DF4A022C1CF315BA006C3456 /* OpenHABDrawerTableViewController.swift in Sources */,
DA5ED9BE2C850955004875E0 /* ClientCertificatesViewModel.swift in Sources */,
DA21EAE22339621C001AB415 /* Throttler.swift in Sources */,
DAF4F6C0222734D300C24876 /* NewImageUITableViewCell.swift in Sources */,
DAEAA89B21E2611000267EA3 /* OpenHABNotificationsViewController.swift in Sources */,
DF1B302D1CF5C667009C921C /* OpenHABNotification.swift in Sources */,
DA6B2EEF2C861BC900DF77CF /* DrawerView.swift in Sources */,
938BF9D324EFD0B700E6B52F /* UIViewController+Localization.swift in Sources */,
DF06F1F618FE7A160011E7B9 /* OpenHABSelectionTableViewController.swift in Sources */,
DAA42BA821DC97E000244B2A /* NotificationTableViewCell.swift in Sources */,
DAF0A28F2C56F1EE00A14A6A /* ColorPickerCell.swift in Sources */,
6595667E28E0BE8E00E8A53B /* MulticastDelegate.swift in Sources */,
Expand All @@ -1530,7 +1483,6 @@
DFA16EBB18883DE500EDB0BB /* SliderUITableViewCell.swift in Sources */,
DFA13CB418872EBD006355C3 /* SwitchUITableViewCell.swift in Sources */,
DFFD8FD118EDBD4F003B502A /* UICircleButton.swift in Sources */,
A07EF7A02230C0A30040919F /* OpenHABClientCertificatesViewController.swift in Sources */,
938BF9C624EFCC0700E6B52F /* UILabel+Localization.swift in Sources */,
DA5ED9C02C8509C2004875E0 /* ClientCertificatesView.swift in Sources */,
653B54C0285C0AC700298ECD /* OpenHABRootViewController.swift in Sources */,
Expand Down
31 changes: 0 additions & 31 deletions openHAB/DrawerUITableViewCell.swift

This file was deleted.

4 changes: 0 additions & 4 deletions openHAB/DrawerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ struct ImageView: View {
struct DrawerView: View {
@State private var sitemaps: [OpenHABSitemap] = []
@State private var uiTiles: [OpenHABUiTile] = []
@State private var drawerItems: [OpenHABDrawerItem] = []
@State private var selectedSection: Int?

var openHABUsername = ""
Expand Down Expand Up @@ -197,11 +196,8 @@ struct DrawerView: View {
case .label: sitemaps.sort { $0.label < $1.label }
case .name: sitemaps.sort { $0.name < $1.name }
}

drawerItems.removeAll()
case let .failure(error):
os_log("%{PUBLIC}@", log: .default, type: .error, error.localizedDescription)
drawerItems.removeAll()
}
}
}
Expand Down
Loading

0 comments on commit dbae41e

Please sign in to comment.