33// For the full copyright and license information, please view the LICENSE
44// file that was distributed with this source code.
55
6- // spell-checker:ignore (ToDO) algo, algoname, bitlen, regexes, nread, nonames
6+ // spell-checker:ignore (ToDO) algo, algoname, bitlen, regexes, nread
77
88use std:: ffi:: { OsStr , OsString } ;
99use std:: iter;
@@ -211,10 +211,6 @@ pub fn uumain(mut args: impl uucore::Args) -> UResult<()> {
211211 return Err ( ChecksumError :: StrictNotCheck . into ( ) ) ;
212212 }
213213
214- let no_names = * matches
215- . try_get_one ( "no-names" )
216- . unwrap_or ( None )
217- . unwrap_or ( & false ) ;
218214 let line_ending = LineEnding :: from_zero_flag ( matches. get_flag ( "zero" ) ) ;
219215
220216 let algo = SizedAlgoKind :: from_unsized ( algo_kind, length) ?;
@@ -229,7 +225,6 @@ pub fn uumain(mut args: impl uucore::Args) -> UResult<()> {
229225 /* base64: */ false ,
230226 ) ,
231227 line_ending,
232- no_names,
233228 } ;
234229
235230 let files = matches. get_many :: < OsString > ( options:: FILE ) . map_or_else (
@@ -384,19 +379,6 @@ fn uu_app_opt_length(command: Command) -> Command {
384379 )
385380}
386381
387- pub fn uu_app_b3sum ( ) -> Command {
388- uu_app_b3sum_opts ( uu_app_common ( ) )
389- }
390-
391- fn uu_app_b3sum_opts ( command : Command ) -> Command {
392- command. arg (
393- Arg :: new ( "no-names" )
394- . long ( "no-names" )
395- . help ( translate ! ( "hashsum-help-no-names" ) )
396- . action ( ArgAction :: SetTrue ) ,
397- )
398- }
399-
400382pub fn uu_app_bits ( ) -> Command {
401383 uu_app_opt_bits ( uu_app_common ( ) )
402384}
@@ -414,7 +396,7 @@ fn uu_app_opt_bits(command: Command) -> Command {
414396}
415397
416398pub fn uu_app_custom ( ) -> Command {
417- let mut command = uu_app_b3sum_opts ( uu_app_opt_bits ( uu_app_common ( ) ) ) ;
399+ let mut command = uu_app_opt_bits ( uu_app_common ( ) ) ;
418400 let algorithms = & [
419401 ( "md5" , translate ! ( "hashsum-help-md5" ) ) ,
420402 ( "sha1" , translate ! ( "hashsum-help-sha1" ) ) ,
0 commit comments