[haiku-commits] Change in haiku[master]: Cleaned up InstallerApp

  • From: Gerrit <review@xxxxxxxxxxxxxxxxxxx>
  • To: waddlesplash <waddlesplash@xxxxxxxxx>, haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 23 Jul 2020 12:05:55 +0000

From Panagiotis Vasilopoulos <hello@xxxxxxxxxxxxxxx>:

Panagiotis Vasilopoulos has uploaded this change for review. ( 
https://review.haiku-os.org/c/haiku/+/3066 ;)


Change subject: Cleaned up InstallerApp
......................................................................

Cleaned up InstallerApp

- Removed outdated, unused EULA text
- Removed unused BAboutWindow instance
- Changed instance name from 'theApp' to 'Installer'
---
M src/apps/installer/InstallerApp.cpp
1 file changed, 2 insertions(+), 48 deletions(-)



  git pull ssh://git.haiku-os.org:22/haiku refs/changes/66/3066/1

diff --git a/src/apps/installer/InstallerApp.cpp 
b/src/apps/installer/InstallerApp.cpp
index 7e50920..4e7d789 100644
--- a/src/apps/installer/InstallerApp.cpp
+++ b/src/apps/installer/InstallerApp.cpp
@@ -22,39 +22,14 @@
 static const uint32 kMsgAgree = 'agre';
 static const uint32 kMsgNext = 'next';

-//static const char* kEULAText =
-//"NOTICE: READ THIS BEFORE INSTALLING OR USING HAIKU\n\n"
-//
-//"Copyright " B_UTF8_COPYRIGHT " 2001-2009 The Haiku Project. All rights "
-//"reserved. The copyright to the Haiku code is property of Haiku, Inc. or of "
-//"the respective authors where expressly noted in the source.\n\n"
-//
-//"Permission is hereby granted, free of charge, to any person obtaining a "
-//"copy of this software and associated documentation files (the 
\"Software\"), "
-//"to deal in the Software without restriction, including without limitation "
-//"the rights to use, copy, modify, merge, publish, distribute, sublicense, "
-//"and/or sell copies of the Software, and to permit persons to whom the "
-//"Software is furnished to do so, subject to the following conditions:\n\n"
-//"The above copyright notice and this permission notice shall be included in "
-//"all copies or substantial portions of the Software.\n\n"
-//
-//"THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS "
-//"OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
"
-//"FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
"
-//"AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER "
-//"LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING "
-//"FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 
DEALINGS "
-//"IN THE SOFTWARE.";
-
-
 #undef B_TRANSLATION_CONTEXT
 #define B_TRANSLATION_CONTEXT "InstallerApp"


 int main(int, char **)
 {
-       InstallerApp theApp;
-       theApp.Run();
+       InstallerApp Installer;
+       Installer.Run();
        return 0;
 }

@@ -84,27 +59,6 @@


 void
-InstallerApp::AboutRequested()
-{
-       BAlert *alert = new BAlert("about", B_TRANSLATE("Installer\n"
-               "\twritten by Jérôme Duval and Stephan Aßmus\n"
-               "\tCopyright 2005-2010, Haiku.\n\n"), B_TRANSLATE("OK"));
-       alert->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE);
-       BTextView *view = alert->TextView();
-       BFont font;
-
-       view->SetStylable(true);
-
-       view->GetFont(&font);
-       font.SetSize(18);
-       font.SetFace(B_BOLD_FACE);
-       view->SetFontAndColor(0, 9, &font);
-
-       alert->Go();
-}
-
-
-void
 InstallerApp::ReadyToRun()
 {
 #if 1

--
To view, visit https://review.haiku-os.org/c/haiku/+/3066
To unsubscribe, or for help writing mail filters, visit 
https://review.haiku-os.org/settings

Gerrit-Project: haiku
Gerrit-Branch: master
Gerrit-Change-Id: I6b8e078dc6e469df4cd2f254ccab719c061561d8
Gerrit-Change-Number: 3066
Gerrit-PatchSet: 1
Gerrit-Owner: Panagiotis Vasilopoulos <hello@xxxxxxxxxxxxxxx>
Gerrit-MessageType: newchange

Other related posts:

  • » [haiku-commits] Change in haiku[master]: Cleaned up InstallerApp - Gerrit