Skip to content

Commit

Permalink
Remove unused option definition
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanschramm committed Oct 20, 2024
1 parent ffe1dc1 commit 15eda31
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions retroload-lib/src/encoding/AdapterManager.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {type AdapterDefinition, type InternalAdapterDefinition} from './adapter/AdapterDefinition.js';
import {type ArgumentOptionDefinition, OptionContainer, type OptionDefinition, type OptionValues} from './Options.js';
import {FormatNotFoundError, InternalError, MissingOptionsError} from '../common/Exceptions.js';
import {OptionContainer, type OptionDefinition, type OptionValues} from './Options.js';
import Adapters from './AdapterProvider.js';
import {type Annotation} from './recorder/Annotations.js';
import {BufferAccess} from '../common/BufferAccess.js';
Expand All @@ -9,18 +9,6 @@ import {Logger} from '../common/logging/Logger.js';
import {type RecorderInterface} from './recorder/RecorderInterface.js';
import {WaveRecorder} from './recorder/WaveRecorder.js';

export const formatOption: ArgumentOptionDefinition<string | undefined> = {
name: 'format',
label: 'Format',
description: 'Format of input file (required when automatic format detection by content and filename fails)',
common: false,
type: 'text',
argument: 'format',
required: false,
parse: (v) => v === '' ? undefined : v,
enum: [...new Set(Adapters.map((a) => a.name))],
};

// Public API functions

/**
Expand Down

0 comments on commit 15eda31

Please sign in to comment.