Author: mlandres Date: Tue Dec 18 21:38:38 2007 New Revision: 8125 URL: http://svn.opensuse.org/viewcvs/zypp?rev=8125&view=rev Log: unused code removed Modified: branches/tmp/ma/jump_sat/libzypp/zypp/Arch.cc Modified: branches/tmp/ma/jump_sat/libzypp/zypp/Arch.cc URL: http://svn.opensuse.org/viewcvs/zypp/branches/tmp/ma/jump_sat/libzypp/zypp/Arch.cc?rev=8125&r1=8124&r2=8125&view=diff ============================================================================== --- branches/tmp/ma/jump_sat/libzypp/zypp/Arch.cc (original) +++ branches/tmp/ma/jump_sat/libzypp/zypp/Arch.cc Tue Dec 18 21:38:38 2007 @@ -280,57 +280,6 @@ /////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////// - - static const string canonical_arch (const string & arch); - - //--------------------------------------------------------------------------- - // architecture stuff - - static const string - canonical_arch (const string & arch) - { - struct canonical { const char *from; const char *to; }; - // convert machine string to known_arch - static canonical canonical_archs[] = { - { "noarch", "noarch" }, - { "unknown", "unknown" }, - { "any", "any" }, - { "all", "any" }, - { "i386", "i386" }, - { "ix86", "i386" }, /* OpenPKG uses this */ - { "i486", "i486" }, - { "i586", "i586" }, - { "i686", "i686" }, - { "x86_64", "x86_64" }, - { "ia32e", "ia32e" }, - { "athlon", "athlon" }, - { "ppc", "ppc" }, - { "ppc64", "ppc64" }, - { "s390", "s390" }, - { "s390x", "s390x" }, - { "ia64", "ia64" }, - { "sparc", "sparc" }, - { "sun4c", "sparc" }, - { "sun4d", "sparc" }, - { "sun4m", "sparc" }, - { "sparc64", "sparc64" }, - { "sun4u", "sparc64" }, - { "sparcv9", "sparc64" }, - { 0, 0 } - }; - - for (canonical *ptr = canonical_archs; ptr->from; ptr++) { - if (arch == ptr->from) { - return ptr->to; - } - } - - return "canonical"; - } - - //--------------------------------------------------------------------------- - - /////////////////////////////////////////////////////////////////// // // CLASS NAME : Arch // -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org