]> git.mxchange.org Git - flightgear.git/commitdiff
remove assignment operators: they aren't used now and won't in the future
authormfranz <mfranz>
Tue, 13 Jun 2006 15:00:31 +0000 (15:00 +0000)
committermfranz <mfranz>
Tue, 13 Jun 2006 15:00:31 +0000 (15:00 +0000)
src/Cockpit/hud.hxx
src/Cockpit/hud_card.cxx
src/Cockpit/hud_dnst.cxx
src/Cockpit/hud_gaug.cxx
src/Cockpit/hud_inst.cxx
src/Cockpit/hud_labl.cxx
src/Cockpit/hud_ladr.cxx
src/Cockpit/hud_lat.cxx
src/Cockpit/hud_lon.cxx
src/Cockpit/hud_scal.cxx
src/Cockpit/hud_tbi.cxx

index 552638695d2e4987c1e307398597de8378ebf1dd..27c505c52734bf998d946f860a1c550956955784 100644 (file)
@@ -441,7 +441,6 @@ public:
 
     instr_item( const instr_item & image );
 
-    instr_item & operator = ( const instr_item & rhs );
     virtual ~instr_item ();
 
     int     get_brightness  ( void ) { return brightness;}
@@ -571,7 +570,6 @@ public:
     ~instr_label();
 
     instr_label( const instr_label & image);
-    instr_label & operator = (const instr_label & rhs );
     virtual void draw( void );       // Required method in base class
 };
 
@@ -608,7 +606,6 @@ public:
     ~lat_label();
 
     lat_label( const lat_label & image);
-    lat_label & operator = (const lat_label & rhs );
     virtual void draw( void );       // Required method in base class
 };
 
@@ -645,7 +642,6 @@ public:
     ~lon_label();
 
     lon_label( const lon_label & image);
-    lon_label & operator = (const lon_label & rhs );
     virtual void draw( void );       // Required method in base class
 };
 
@@ -731,7 +727,6 @@ public:
 
     virtual ~instr_scale();
     instr_scale( const instr_scale & image);
-    instr_scale & operator = (const instr_scale & rhs);
 
     virtual void draw   ( void ) {}; // No-op here. Defined in derived classes.
     UINT   div_min      ( void ) { return Min_div;}
@@ -813,7 +808,6 @@ public:
 
     ~hud_card();
     hud_card( const hud_card & image);
-    hud_card & operator = (const hud_card & rhs );
     //    virtual void display_enable( bool setting );
     virtual void draw( void );       // Required method in base class
     void circles(float,float,float); // suma
@@ -842,7 +836,6 @@ public:
 
     ~gauge_instr();
     gauge_instr( const gauge_instr & image);
-    gauge_instr & operator = (const gauge_instr & rhs );
     virtual void draw( void );       // Required method in base class
 };
 
@@ -867,7 +860,6 @@ public:
 
     virtual ~dual_instr_item() {};
     dual_instr_item( const dual_instr_item & image);
-    dual_instr_item & operator = (const dual_instr_item & rhs );
 
     float current_ch1( void ) { return (float)alt_data_source();}
     float current_ch2( void ) { return (float)get_value();}
@@ -898,7 +890,6 @@ public:
                  float     rad); //suma
 
     fgTBI_instr( const fgTBI_instr & image);
-    fgTBI_instr & operator = (const fgTBI_instr & rhs );
 
     ~fgTBI_instr();
 
@@ -977,7 +968,6 @@ public:
     ~HudLadder();
 
     HudLadder( const HudLadder & image );
-    HudLadder & operator = ( const HudLadder & rhs );
     virtual void draw( void );
     void drawZenith(float,float,float); //suma
     void drawNadir(float, float, float); //suma
index af5825e3e9fdc5cbcad85669081c3e57b1c84f8b..6bbe1d634384bbe16a41475b724870e4084e66dd 100644 (file)
@@ -130,34 +130,6 @@ hud_card::hud_card(const hud_card & image) :
 }
 
 
-hud_card & hud_card::operator=(const hud_card & rhs)
-{
-    if (!(this == &rhs)) {
-        instr_scale::operator = (rhs);
-        val_span = rhs.val_span;
-        half_width_units = rhs.half_width_units;
-        draw_tick_bottom = rhs.draw_tick_bottom;
-        draw_tick_top    = rhs.draw_tick_top;
-        draw_tick_right  = rhs.draw_tick_right;
-        draw_tick_left   = rhs.draw_tick_left;
-        draw_cap_bottom  = rhs.draw_cap_bottom;
-        draw_cap_top     = rhs.draw_cap_top;
-        draw_cap_right   = rhs.draw_cap_right;
-        draw_cap_left    = rhs.draw_cap_left;
-        marker_offset    = rhs.marker_offset;
-        type             = rhs.type;
-        pointer          = rhs.pointer;
-        pointer_type     = rhs.pointer_type;
-        tick_type        = rhs.tick_type;
-        tick_length      = rhs.tick_length;
-        Maj_div          = rhs.Maj_div;
-        Min_div          = rhs.Min_div;
-    }
-
-    return *this;
-}
-
-
 void hud_card::draw(void) //  (HUD_scale * pscale)
 {
     float vmin = 0.0, vmax = 0.0;
index cf5eacfddb6b942d9e6f6528db32fc73b9d0ef06..49f23e79b66e901080e35bb46cec30768c9126ae 100644 (file)
@@ -1,7 +1,7 @@
 
 #include "hud.hxx"
 
-     
+
 //============ Top of dual_instr_item class member definitions ============
 
 dual_instr_item ::
@@ -26,15 +26,3 @@ dual_instr_item ::
 {
 }
 
-dual_instr_item & dual_instr_item ::
-  operator = (const dual_instr_item & rhs )
-{
-  if( !(this == &rhs)) {
-    instr_item::operator = (rhs);
-    alt_data_source = rhs.alt_data_source;
-    }
-  return *this;
-}
-
-// End of hud_dnst.cxx
-
index a934ed01aac2eef71361450941aed8f37f283d08..e064c18b94caca53f94ab0ebfb25d5a91b0f38e0 100644 (file)
@@ -66,15 +66,6 @@ gauge_instr::gauge_instr( const gauge_instr & image) :
 }
 
 
-gauge_instr & gauge_instr::operator=(const gauge_instr & rhs)
-{
-    if (!(this == &rhs)) {
-        instr_scale::operator = (rhs);
-    }
-    return *this;
-}
-
-
 // As implemented, draw only correctly draws a horizontal or vertical
 // scale. It should contain a variation that permits clock type displays.
 // Now is supports "tickless" displays such as control surface indicators.
index 2505aa1a49123eea3aa48a9b28b8c7873d0cb5f4..cee672247c4e70831f1557c2138f39899273ac85 100644 (file)
@@ -71,22 +71,6 @@ instr_item  ::
 {
 }
 
-// assignment operator
-
-instr_item & instr_item :: operator = ( const instr_item & rhs )
-{
-  if( !(this == &rhs )) { // Not an identity assignment
-    scrn_pos      = rhs.scrn_pos;
-    load_value_fn = rhs.load_value_fn;
-    disp_factor   = rhs.disp_factor;
-    opts          = rhs.opts;
-    is_enabled    = rhs.is_enabled;
-    broken        = rhs.broken;
-    }
-  return *this;
-}
-
-// destructor
 
 instr_item :: ~instr_item ()
 {
index 95d5cc19a9da5cd034ea84d46741b44772151f1e..a20f024459164af3462f439d7c2b0243acac70d1 100644 (file)
@@ -93,25 +93,6 @@ instr_label :: instr_label( const instr_label & image) :
 
 }
 
-instr_label & instr_label ::operator = (const instr_label & rhs )
-{
-  if( !(this == &rhs)) {
-    instr_item::operator = (rhs);
-    pformat      = rhs.pformat;
-    fontSize   = rhs.fontSize;
-    blink      = rhs.blink;
-    justify    = rhs.justify;
-    pre_str    = rhs.pre_str;
-    post_str   = rhs.post_str;
-    lat                   = rhs.lat;
-    lon                   = rhs.lon;
-       lbox       = rhs.lbox; //hud
-
-
-    strcpy(format_buffer,rhs.format_buffer);   
-    }
-  return *this;
-}
 
 //
 // draw                    Draws a label anywhere in the HUD
index a7266379414dafd57f6f9c029d130fab5ebcb6e6..09a4070a343653a72a8592c540331a966dc71c86 100644 (file)
@@ -102,34 +102,6 @@ HudLadder::HudLadder( const HudLadder & image ) :
 }
 
 
-HudLadder& HudLadder::operator=( const HudLadder & rhs )
-{
-    if (!(this == &rhs)) {
-        (dual_instr_item &)(*this) = (dual_instr_item &)rhs;
-        width_units                = rhs.width_units;
-        div_units                  = rhs.div_units;
-        label_pos                  = rhs.label_pos;
-        scr_hole                   = rhs.scr_hole;
-        vmax                       = rhs.vmax;
-        vmin                       = rhs.vmin;
-        factor                     = rhs.factor;
-        hudladder_type             = rhs.hudladder_type;
-        frl                        = rhs.frl;
-        velocity_vector            = rhs.velocity_vector;
-        drift_marker               = rhs.drift_marker;
-        alpha_bracket              = rhs.alpha_bracket;
-        energy_marker              = rhs.energy_marker;
-        climb_dive_marker          = rhs.climb_dive_marker;
-        target_spot                = rhs.target_spot;
-        glide_slope_marker         = rhs.glide_slope_marker;
-        glide_slope                = rhs.glide_slope;
-        energy_worm                = rhs.energy_worm;
-        waypoint_marker            = rhs.waypoint_marker;
-    }
-    return *this;
-}
-
-
 //
 //  Draws a climb ladder in the center of the HUD
 //
index c3ca62353c0e40283fe196f39b47c71a08d137b8..9436e8bdf04263afd0a7def277c19b4dec9ae151 100644 (file)
@@ -75,22 +75,6 @@ lat_label::lat_label( const lat_label & image) :
 }
 
 
-lat_label& lat_label::operator=(const lat_label & rhs)
-{
-    if (!(this == &rhs)) {
-        instr_item::operator = (rhs);
-        pformat    = rhs.pformat;
-        fontSize   = rhs.fontSize;
-        blink      = rhs.blink;
-        justify    = rhs.justify;
-        pre_str    = rhs.pre_str;
-        post_str   = rhs.post_str;
-        strcpy(format_buffer,rhs.format_buffer);
-    }
-    return *this;
-}
-
-
 //
 // draw                    Draws a label anywhere in the HUD
 //
index 0676f4e4ccc80a806097afbcdc44af3561df9f24..52aa7a60755b8aa063e1686128b0a77d4bbeef71 100644 (file)
@@ -84,20 +84,6 @@ lon_label :: lon_label( const lon_label & image) :
 
 }
 
-lon_label & lon_label ::operator = (const lon_label & rhs )
-{
-  if( !(this == &rhs)) {
-    instr_item::operator = (rhs);
-    pformat      = rhs.pformat;
-    fontSize   = rhs.fontSize;
-    blink      = rhs.blink;
-    justify    = rhs.justify;
-    pre_str    = rhs.pre_str;
-    post_str   = rhs.post_str;
-    strcpy(format_buffer,rhs.format_buffer);   
-    }
-  return *this;
-}
 
 //
 // draw                    Draws a label anywhere in the HUD
index d4cc564e4bfdee136b231fc3a6b8d7a747fac091..2d99d26b1ab329af78fb44888971c040759e800b 100644 (file)
@@ -66,21 +66,6 @@ instr_scale ::
 {
 }
 
-instr_scale & instr_scale :: operator = (const instr_scale & rhs )
-{
-  if( !(this == &rhs)) {
-    instr_item::operator = (rhs);
-    range_shown   = rhs.range_shown;
-    scale_factor  = rhs.scale_factor;
-    Maximum_value = rhs.Maximum_value;
-    Minimum_value = rhs.Minimum_value;
-    Maj_div       = rhs.Maj_div;
-    Min_div       = rhs.Min_div;
-    Modulo        = rhs.Modulo;
-    signif_digits = rhs.signif_digits;
-    }
-  return *this;
-}
 
 instr_scale :: ~ instr_scale () {}
 
index 3c0430c3825cd81b4b1d0574238f005eba6bcf2a..5a8f9bf34dba83a1b66e0fb79a85e161451a0375 100644 (file)
@@ -41,17 +41,6 @@ fgTBI_instr :: fgTBI_instr( const fgTBI_instr & image):
 {
 }
 
-fgTBI_instr & fgTBI_instr ::
-operator = (const fgTBI_instr & rhs )
-{
-  if( !(this == &rhs)) {
-    dual_instr_item::operator = (rhs);
-    BankLimit = rhs.BankLimit;
-    SlewLimit = rhs.SlewLimit;
-    scr_hole  = rhs.scr_hole;
-    }
-   return *this;
-}
 
 //
 //  Draws a Turn Bank Indicator on the screen