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 = {
clickCertificateSelectionBehavior = id;
clickEnableLeaveEncrypted = id;
clickEnableLoadLowGrade = id;
clickEnableViewMixed = id;
showCertificates = id;
};
@ -25,7 +24,6 @@
OUTLETS = {
mCertificateBehavior = NSMatrix;
mLeaveEncrypted = NSButton;
mLoadLowGrade = NSButton;
mViewMixed = NSButton;
};
SUPERCLASS = PreferencePaneBase;

View File

@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<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>
<string>446.1</string>
<key>IBOpenObjects</key>
@ -11,7 +11,7 @@
<integer>5</integer>
</array>
<key>IBSystem Version</key>
<string>8I127</string>
<string>8L2127</string>
<key>IBUserGuides</key>
<dict>
<key>5</key>

View File

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

View File

@ -92,23 +92,22 @@ const unsigned int kAskEveryTimeMatrixRowValue = 1;
//
// clickEnableViewMixed:
// clickEnableLoadLowGrade:
// clickEnableLeaveEncrypted:
//
// Set prefs for warnings/alerts wrt secure sites
//
-(IBAction) clickEnableViewMixed:(id)sender
- (IBAction)clickEnableViewMixed:(id)sender
{
[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];
}
-(IBAction)clickCertificateSelectionBehavior:(id)sender
- (IBAction)clickCertificateSelectionBehavior:(id)sender
{
unsigned int row = [mCertificateBehavior selectedRow];
@ -118,7 +117,7 @@ const unsigned int kAskEveryTimeMatrixRowValue = 1;
[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
NSDictionary* userInfoDict = [NSDictionary dictionaryWithObject:[mLeaveEncrypted window] // any view's window