Revision: 28836 http://sourceforge.net/p/bibdesk/svn/28836 Author: hofman Date: 2024-03-12 10:07:18 +0000 (Tue, 12 Mar 2024) Log Message: ----------- remove unused NSLayoutConstraint category
Modified Paths: -------------- trunk/bibdesk/Bibdesk.xcodeproj/project.pbxproj Removed Paths: ------------- trunk/bibdesk/NSLayoutConstraint_BDSKExtensions.h trunk/bibdesk/NSLayoutConstraint_BDSKExtensions.m Modified: trunk/bibdesk/Bibdesk.xcodeproj/project.pbxproj =================================================================== --- trunk/bibdesk/Bibdesk.xcodeproj/project.pbxproj 2024-03-11 15:39:03 UTC (rev 28835) +++ trunk/bibdesk/Bibdesk.xcodeproj/project.pbxproj 2024-03-12 10:07:18 UTC (rev 28836) @@ -579,8 +579,6 @@ CE9F85410956A2C50073FCAD /* BDSKFieldEditor.m in Sources */ = {isa = PBXBuildFile; fileRef = CE9F853F0956A2C50073FCAD /* BDSKFieldEditor.m */; }; CEA1A0A326F5054800897A84 /* BDSKFilePathTransformer.h in Headers */ = {isa = PBXBuildFile; fileRef = CEA1A0A126F5054800897A84 /* BDSKFilePathTransformer.h */; }; CEA1A0A426F5054800897A84 /* BDSKFilePathTransformer.m in Sources */ = {isa = PBXBuildFile; fileRef = CEA1A0A226F5054800897A84 /* BDSKFilePathTransformer.m */; }; - CEA22F3E26B86A3900DFE422 /* NSLayoutConstraint_BDSKExtensions.h in Headers */ = {isa = PBXBuildFile; fileRef = CEA22F3C26B86A3900DFE422 /* NSLayoutConstraint_BDSKExtensions.h */; }; - CEA22F3F26B86A3900DFE422 /* NSLayoutConstraint_BDSKExtensions.m in Sources */ = {isa = PBXBuildFile; fileRef = CEA22F3D26B86A3900DFE422 /* NSLayoutConstraint_BDSKExtensions.m */; }; CEA3E4CF23EB217F00533CA7 /* MergeSheet.xib in Resources */ = {isa = PBXBuildFile; fileRef = CEA3E4D123EB217F00533CA7 /* MergeSheet.xib */; }; CEA498A21481183600AB81C5 /* BDSKAddressTextField.m in Sources */ = {isa = PBXBuildFile; fileRef = CEA498A01481183600AB81C5 /* BDSKAddressTextField.m */; }; CEA498A61481185100AB81C5 /* BDSKAddressTextFieldCell.m in Sources */ = {isa = PBXBuildFile; fileRef = CEA498A41481185100AB81C5 /* BDSKAddressTextFieldCell.m */; }; @@ -1788,8 +1786,6 @@ CE9F853F0956A2C50073FCAD /* BDSKFieldEditor.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BDSKFieldEditor.m; sourceTree = "<group>"; }; CEA1A0A126F5054800897A84 /* BDSKFilePathTransformer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = BDSKFilePathTransformer.h; sourceTree = "<group>"; }; CEA1A0A226F5054800897A84 /* BDSKFilePathTransformer.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BDSKFilePathTransformer.m; sourceTree = "<group>"; }; - CEA22F3C26B86A3900DFE422 /* NSLayoutConstraint_BDSKExtensions.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NSLayoutConstraint_BDSKExtensions.h; sourceTree = "<group>"; }; - CEA22F3D26B86A3900DFE422 /* NSLayoutConstraint_BDSKExtensions.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = NSLayoutConstraint_BDSKExtensions.m; sourceTree = "<group>"; }; CEA478EB263B088F00B4CB12 /* fr */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = fr; path = fr.lproj/BDSKSearchGroupSheet.strings; sourceTree = "<group>"; }; CEA478EC263B089100B4CB12 /* de */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/BDSKSearchGroupSheet.strings; sourceTree = "<group>"; }; CEA4989F1481183600AB81C5 /* BDSKAddressTextField.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BDSKAddressTextField.h; sourceTree = "<group>"; }; @@ -2738,7 +2734,6 @@ CEEC1A311091F31600530207 /* NSEvent_BDSKExtensions.m */, CE248771112C974D006B4FA5 /* NSFont_BDSKExtensions.m */, F9022C9D0758038000C3F701 /* NSImage_BDSKExtensions.m */, - CEA22F3D26B86A3900DFE422 /* NSLayoutConstraint_BDSKExtensions.m */, F9FD63DB0A61B87800F9871B /* NSMenu_BDSKExtensions.m */, CE6C04430BEDFA2D007BF0B5 /* NSParagraphStyle_BDSKExtensions.m */, CE7611510EA49B6E00301E45 /* NSPrintOperation_BDSKExtensions.m */, @@ -3387,7 +3382,6 @@ CEAE613C097FF60A000B618C /* BDSKJSTORParser.h */, CD50E5F811A2190E00848756 /* BDSKJSTORWebParser.h */, CE24B35210C3E9E100818EDF /* BDSKLastImportGroup.h */, - CEA22F3C26B86A3900DFE422 /* NSLayoutConstraint_BDSKExtensions.h */, F92405000BC5856900672839 /* BDSKLevelIndicatorCell.h */, CE24B33210C3E13900818EDF /* BDSKLibraryGroup.h */, CE15197F14B62E47003AE698 /* BDSKLineNumberView.h */, @@ -3909,7 +3903,6 @@ CE2A0A7922459A3100A8F31C /* BDSKSpringerParser.h in Headers */, CE2A0ABE22459A4500A8F31C /* BibPref_Sharing.h in Headers */, CE2A0AD722459A5100A8F31C /* NSObject_BDSKExtensions.h in Headers */, - CEA22F3E26B86A3900DFE422 /* NSLayoutConstraint_BDSKExtensions.h in Headers */, CE2A09EA224599DB00A8F31C /* BDSKEditorTableView.h in Headers */, CE2A0A6222459A0A00A8F31C /* BDSKScrollableTextFieldCell.h in Headers */, CE2A0A56224599F600A8F31C /* BDSKRISParser.h in Headers */, @@ -4777,7 +4770,6 @@ CE963638283D292F00D8A983 /* BDSKTextUndoManager.m in Sources */, 3D7406940849F5430081EC6F /* BDSKTypeNameFormatter.m in Sources */, F97965F2086909EA00050427 /* BDSKFindController.m in Sources */, - CEA22F3F26B86A3900DFE422 /* NSLayoutConstraint_BDSKExtensions.m in Sources */, CE5417E422D4DA9500867189 /* BDSKAuthenticationController.m in Sources */, F95CC0C3087F5378002C5694 /* NSFileManager_BDSKExtensions.m in Sources */, F9E0BCB40895ACC9005E5FAA /* BibPref_Display.m in Sources */, Deleted: trunk/bibdesk/NSLayoutConstraint_BDSKExtensions.h =================================================================== --- trunk/bibdesk/NSLayoutConstraint_BDSKExtensions.h 2024-03-11 15:39:03 UTC (rev 28835) +++ trunk/bibdesk/NSLayoutConstraint_BDSKExtensions.h 2024-03-12 10:07:18 UTC (rev 28836) @@ -1,55 +0,0 @@ -// -// NSLayoutConstraint_BDSKExtensions.h -// BibDesk -// -// Created by Christiaan Hofman on 02/08/2021. -/* - This software is Copyright (c) 2021 - Christiaan Hofman. All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - - - Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in - the documentation and/or other materials provided with the - distribution. - - - Neither the name of Christiaan Hofman nor the names of any - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#import <Cocoa/Cocoa.h> - - -@interface NSLayoutConstraint (BDSKExtensions) - -+ (NSLayoutConstraint *)constraintWithLeadingMargin:(CGFloat)margin forItem:(id)item1 toItem:(id)item2; -+ (NSLayoutConstraint *)constraintWithTrailingMargin:(CGFloat)margin forItem:(id)item2 toItem:(id)item1; -+ (NSLayoutConstraint *)constraintWithTopMargin:(CGFloat)margin forItem:(id)item1 toItem:(id)item2; -+ (NSLayoutConstraint *)constraintWithBottomMargin:(CGFloat)margin forItem:(id)item2 toItem:(id)item1; -+ (NSLayoutConstraint *)constraintWithLeadingSpacing:(CGFloat)spacing forItem:(id)item1 toItem:(id)item2; -+ (NSLayoutConstraint *)constraintWithTopSpacing:(CGFloat)spacing forItem:(id)item1 toItem:(id)item2; -+ (NSLayoutConstraint *)constraintWithWidth:(CGFloat)width forItem:(id)item; -+ (NSLayoutConstraint *)constraintWithHeight:(CGFloat)height forItem:(id)item; -+ (NSLayoutConstraint *)constraintWithCenterXOffset:(CGFloat)margin forItem:(id)item1 toItem:(id)item2; -+ (NSLayoutConstraint *)constraintWithCenterYOffset:(CGFloat)margin forItem:(id)item1 toItem:(id)item2; - -@end Deleted: trunk/bibdesk/NSLayoutConstraint_BDSKExtensions.m =================================================================== --- trunk/bibdesk/NSLayoutConstraint_BDSKExtensions.m 2024-03-11 15:39:03 UTC (rev 28835) +++ trunk/bibdesk/NSLayoutConstraint_BDSKExtensions.m 2024-03-12 10:07:18 UTC (rev 28836) @@ -1,83 +0,0 @@ -// -// NSLayoutConstraint_BDSKExtensions.m -// BibDesk -// -// Created by Christiaan Hofman on 02/08/2021. -/* - This software is Copyright (c) 2021 - Christiaan Hofman. All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - - - Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in - the documentation and/or other materials provided with the - distribution. - - - Neither the name of Christiaan Hofman nor the names of any - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#import "NSLayoutConstraint_BDSKExtensions.h" - -@implementation NSLayoutConstraint (BDSKExtensions) - -+ (NSLayoutConstraint *)constraintWithLeadingMargin:(CGFloat)margin forItem:(id)item1 toItem:(id)item2 { - return [self constraintWithItem:item1 attribute:NSLayoutAttributeLeading relatedBy:NSLayoutRelationEqual toItem:item2 attribute:NSLayoutAttributeLeading multiplier:1.0 constant:margin]; -} - -+ (NSLayoutConstraint *)constraintWithTrailingMargin:(CGFloat)margin forItem:(id)item2 toItem:(id)item1 { - return [self constraintWithItem:item1 attribute:NSLayoutAttributeTrailing relatedBy:NSLayoutRelationEqual toItem:item2 attribute:NSLayoutAttributeTrailing multiplier:1.0 constant:margin]; -} - -+ (NSLayoutConstraint *)constraintWithTopMargin:(CGFloat)margin forItem:(id)item1 toItem:(id)item2 { - return [self constraintWithItem:item1 attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual toItem:item2 attribute:NSLayoutAttributeTop multiplier:1.0 constant:margin]; -} - -+ (NSLayoutConstraint *)constraintWithBottomMargin:(CGFloat)margin forItem:(id)item2 toItem:(id)item1 { - return [self constraintWithItem:item1 attribute:NSLayoutAttributeBottom relatedBy:NSLayoutRelationEqual toItem:item2 attribute:NSLayoutAttributeBottom multiplier:1.0 constant:margin]; -} - -+ (NSLayoutConstraint *)constraintWithLeadingSpacing:(CGFloat)spacing forItem:(id)item1 toItem:(id)item2 { - return [self constraintWithItem:item1 attribute:NSLayoutAttributeLeading relatedBy:NSLayoutRelationEqual toItem:item2 attribute:NSLayoutAttributeTrailing multiplier:1.0 constant:spacing]; -} - -+ (NSLayoutConstraint *)constraintWithTopSpacing:(CGFloat)spacing forItem:(id)item1 toItem:(id)item2 { - return [self constraintWithItem:item1 attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual toItem:item2 attribute:NSLayoutAttributeBottom multiplier:1.0 constant:spacing]; -} - -+ (NSLayoutConstraint *)constraintWithWidth:(CGFloat)width forItem:(id)item { - return [self constraintWithItem:item attribute:NSLayoutAttributeWidth relatedBy:NSLayoutRelationEqual toItem:nil attribute:NSLayoutAttributeNotAnAttribute multiplier:1.0 constant:width]; -} - -+ (NSLayoutConstraint *)constraintWithHeight:(CGFloat)height forItem:(id)item { - return [self constraintWithItem:item attribute:NSLayoutAttributeHeight relatedBy:NSLayoutRelationEqual toItem:nil attribute:NSLayoutAttributeNotAnAttribute multiplier:1.0 constant:height]; -} - -+ (NSLayoutConstraint *)constraintWithCenterXOffset:(CGFloat)offset forItem:(id)item1 toItem:(id)item2 { - return [self constraintWithItem:item1 attribute:NSLayoutAttributeCenterX relatedBy:NSLayoutRelationEqual toItem:item2 attribute:NSLayoutAttributeCenterX multiplier:1.0 constant:offset]; -} - -+ (NSLayoutConstraint *)constraintWithCenterYOffset:(CGFloat)offset forItem:(id)item1 toItem:(id)item2 { - return [self constraintWithItem:item1 attribute:NSLayoutAttributeCenterY relatedBy:NSLayoutRelationEqual toItem:item2 attribute:NSLayoutAttributeCenterY multiplier:1.0 constant:offset]; -} - -@end This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Bibdesk-commit mailing list Bibdesk-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-commit