Camino only - Bug 370347: Remove dead code from security pref pane. r/sr=josh

This commit is contained in:
stuart.morgan%alumni.case.edu 2007-02-14 23:11:25 +00:00
parent be360d4185
commit 119259814e
5 changed files with 10 additions and 15 deletions

View File

@ -16,7 +16,6 @@
ACTIONS = { ACTIONS = {
clickCertificateSelectionBehavior = id; clickCertificateSelectionBehavior = id;
clickEnableLeaveEncrypted = id; clickEnableLeaveEncrypted = id;
clickEnableLoadLowGrade = id;
clickEnableViewMixed = id; clickEnableViewMixed = id;
showCertificates = id; showCertificates = id;
}; };
@ -25,7 +24,6 @@
OUTLETS = { OUTLETS = {
mCertificateBehavior = NSMatrix; mCertificateBehavior = NSMatrix;
mLeaveEncrypted = NSButton; mLeaveEncrypted = NSButton;
mLoadLowGrade = NSButton;
mViewMixed = NSButton; mViewMixed = NSButton;
}; };
SUPERCLASS = PreferencePaneBase; SUPERCLASS = PreferencePaneBase;

View File

@ -3,7 +3,7 @@
<plist version="1.0"> <plist version="1.0">
<dict> <dict>
<key>IBDocumentLocation</key> <key>IBDocumentLocation</key>
<string>21 1 356 240 0 0 1024 746 </string> <string>89 2 356 240 0 0 1680 1028 </string>
<key>IBFramework Version</key> <key>IBFramework Version</key>
<string>446.1</string> <string>446.1</string>
<key>IBOpenObjects</key> <key>IBOpenObjects</key>
@ -11,7 +11,7 @@
<integer>5</integer> <integer>5</integer>
</array> </array>
<key>IBSystem Version</key> <key>IBSystem Version</key>
<string>8I127</string> <string>8L2127</string>
<key>IBUserGuides</key> <key>IBUserGuides</key>
<dict> <dict>
<key>5</key> <key>5</key>

View File

@ -45,17 +45,15 @@ class nsIPref;
@interface OrgMozillaChimeraPreferenceSecurity : PreferencePaneBase @interface OrgMozillaChimeraPreferenceSecurity : PreferencePaneBase
{ {
IBOutlet NSButton* mLeaveEncrypted; IBOutlet NSButton* mLeaveEncrypted;
IBOutlet NSButton* mLoadLowGrade;
IBOutlet NSButton* mViewMixed; IBOutlet NSButton* mViewMixed;
IBOutlet NSMatrix* mCertificateBehavior; IBOutlet NSMatrix* mCertificateBehavior;
} }
-(IBAction) clickEnableLeaveEncrypted:(id)sender; - (IBAction)clickEnableLeaveEncrypted:(id)sender;
-(IBAction) clickEnableLoadLowGrade:(id)sender; - (IBAction)clickEnableViewMixed:(id)sender;
-(IBAction) clickEnableViewMixed:(id)sender;
-(IBAction)clickCertificateSelectionBehavior:(id)sender; - (IBAction)clickCertificateSelectionBehavior:(id)sender;
-(IBAction)showCertificates:(id)sender; - (IBAction)showCertificates:(id)sender;
@end @end

View File

@ -92,23 +92,22 @@ const unsigned int kAskEveryTimeMatrixRowValue = 1;
// //
// clickEnableViewMixed: // clickEnableViewMixed:
// clickEnableLoadLowGrade:
// clickEnableLeaveEncrypted: // clickEnableLeaveEncrypted:
// //
// Set prefs for warnings/alerts wrt secure sites // Set prefs for warnings/alerts wrt secure sites
// //
-(IBAction) clickEnableViewMixed:(id)sender - (IBAction)clickEnableViewMixed:(id)sender
{ {
[self setPref:MIXEDCONTENT_PREF toBoolean:[sender state] == NSOnState]; [self setPref:MIXEDCONTENT_PREF toBoolean:[sender state] == NSOnState];
} }
-(IBAction) clickEnableLeaveEncrypted:(id)sender - (IBAction)clickEnableLeaveEncrypted:(id)sender
{ {
[self setPref:LEAVE_SITE_PREF toBoolean:[sender state] == NSOnState]; [self setPref:LEAVE_SITE_PREF toBoolean:[sender state] == NSOnState];
} }
-(IBAction)clickCertificateSelectionBehavior:(id)sender - (IBAction)clickCertificateSelectionBehavior:(id)sender
{ {
unsigned int row = [mCertificateBehavior selectedRow]; unsigned int row = [mCertificateBehavior selectedRow];
@ -118,7 +117,7 @@ const unsigned int kAskEveryTimeMatrixRowValue = 1;
[self setPref:"security.default_personal_cert" toString:@"Ask Every Time"]; [self setPref:"security.default_personal_cert" toString:@"Ask Every Time"];
} }
-(IBAction)showCertificates:(id)sender - (IBAction)showCertificates:(id)sender
{ {
// we'll just fire off a notification and let the application show the UI // we'll just fire off a notification and let the application show the UI
NSDictionary* userInfoDict = [NSDictionary dictionaryWithObject:[mLeaveEncrypted window] // any view's window NSDictionary* userInfoDict = [NSDictionary dictionaryWithObject:[mLeaveEncrypted window] // any view's window