remove unused variables
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4447 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -60,7 +60,6 @@ StyledEditApp::StyledEditApp()
|
|||||||
menuBar->AddItem(fOpenPanelEncodingMenu);
|
menuBar->AddItem(fOpenPanelEncodingMenu);
|
||||||
fOpenPanelEncodingMenu->SetRadioMode(true);
|
fOpenPanelEncodingMenu->SetRadioMode(true);
|
||||||
|
|
||||||
status_t status = B_OK;
|
|
||||||
BCharacterSetRoster roster;
|
BCharacterSetRoster roster;
|
||||||
BCharacterSet charset;
|
BCharacterSet charset;
|
||||||
while (roster.GetNextCharacterSet(&charset) == B_NO_ERROR) {
|
while (roster.GetNextCharacterSet(&charset) == B_NO_ERROR) {
|
||||||
|
|||||||
@@ -220,8 +220,6 @@ StyledEditWindow::InitWindow(uint32 encoding)
|
|||||||
fFontColorMenu->SetRadioMode(true);
|
fFontColorMenu->SetRadioMode(true);
|
||||||
fFontMenu->AddItem(fFontColorMenu);
|
fFontMenu->AddItem(fFontColorMenu);
|
||||||
|
|
||||||
ColorMenuItem *ColorItem;
|
|
||||||
|
|
||||||
fFontColorMenu->AddItem(fBlackItem= new BMenuItem("Black", new BMessage(FONT_COLOR)));
|
fFontColorMenu->AddItem(fBlackItem= new BMenuItem("Black", new BMessage(FONT_COLOR)));
|
||||||
fBlackItem->SetMarked(true);
|
fBlackItem->SetMarked(true);
|
||||||
fFontColorMenu->AddItem(fRedItem= new ColorMenuItem("Red", RED, new BMessage(FONT_COLOR)));
|
fFontColorMenu->AddItem(fRedItem= new ColorMenuItem("Red", RED, new BMessage(FONT_COLOR)));
|
||||||
@@ -904,10 +902,8 @@ StyledEditWindow::SaveAs(BMessage *message)
|
|||||||
menuBar->AddItem(fSavePanelEncodingMenu);
|
menuBar->AddItem(fSavePanelEncodingMenu);
|
||||||
fSavePanelEncodingMenu->SetRadioMode(true);
|
fSavePanelEncodingMenu->SetRadioMode(true);
|
||||||
|
|
||||||
status_t status = B_OK;
|
|
||||||
BCharacterSetRoster roster;
|
BCharacterSetRoster roster;
|
||||||
BCharacterSet charset;
|
BCharacterSet charset;
|
||||||
int index = 0;
|
|
||||||
while (roster.GetNextCharacterSet(&charset) == B_NO_ERROR) {
|
while (roster.GetNextCharacterSet(&charset) == B_NO_ERROR) {
|
||||||
BString name(charset.GetPrintName());
|
BString name(charset.GetPrintName());
|
||||||
const char * mime = charset.GetMIMEName();
|
const char * mime = charset.GetMIMEName();
|
||||||
@@ -1147,7 +1143,6 @@ StyledEditWindow::Print(const char *documentname)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// information from printJob
|
// information from printJob
|
||||||
BRect paper_rect = printJob.PaperRect();
|
|
||||||
BRect printable_rect = printJob.PrintableRect();
|
BRect printable_rect = printJob.PrintableRect();
|
||||||
int32 firstPage = printJob.FirstPage();
|
int32 firstPage = printJob.FirstPage();
|
||||||
int32 lastPage = printJob.LastPage();
|
int32 lastPage = printJob.LastPage();
|
||||||
@@ -1301,9 +1296,6 @@ StyledEditWindow::Replace(BString findthis, BString replaceWith, bool casesens,
|
|||||||
void
|
void
|
||||||
StyledEditWindow::ReplaceAll(BString findIt, BString replaceWith, bool caseSens)
|
StyledEditWindow::ReplaceAll(BString findIt, BString replaceWith, bool caseSens)
|
||||||
{
|
{
|
||||||
int32 start;
|
|
||||||
int32 oldstart;
|
|
||||||
|
|
||||||
BString viewText(fTextView->Text());
|
BString viewText(fTextView->Text());
|
||||||
if (caseSens)
|
if (caseSens)
|
||||||
viewText.ReplaceAll(findIt.String(),replaceWith.String());
|
viewText.ReplaceAll(findIt.String(),replaceWith.String());
|
||||||
|
|||||||
Reference in New Issue
Block a user