Skip to content

Commit 7b45f27

Browse files
committed
Cleanup
1 parent ecd21bc commit 7b45f27

File tree

1 file changed

+0
-94
lines changed

1 file changed

+0
-94
lines changed

src/jrd/dfw.epp

Lines changed: 0 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,6 @@ static bool delete_index(thread_db*, SSHORT, DeferredWork*, jrd_tra*);
373373
static bool commit_relation(thread_db*, SSHORT, DeferredWork*, jrd_tra*);
374374
static bool create_relation(thread_db*, SSHORT, DeferredWork*, jrd_tra*);
375375
static bool delete_relation(thread_db*, SSHORT, DeferredWork*, jrd_tra*);
376-
static bool scan_relation(thread_db*, SSHORT, DeferredWork*, jrd_tra*);
377376
static bool create_trigger(thread_db*, SSHORT, DeferredWork*, jrd_tra*);
378377
static bool delete_trigger(thread_db*, SSHORT, DeferredWork*, jrd_tra*);
379378
static bool modify_trigger(thread_db*, SSHORT, DeferredWork*, jrd_tra*);
@@ -410,11 +409,8 @@ static string remove_icu_info_from_attributes(const string&, const string&);
410409
static void check_computed_dependencies(thread_db* tdbb, jrd_tra* transaction,
411410
const MetaName& fieldName);
412411
static void check_filename(const Firebird::string&, bool);
413-
static void cleanup_index_creation(thread_db*, DeferredWork*, jrd_tra*);
414412
static bool find_depend_in_dfw(thread_db*, TEXT*, USHORT, USHORT, jrd_tra*);
415-
static void get_array_desc(thread_db*, const TEXT*, Ods::InternalArrayDesc*);
416413
static void get_trigger_dependencies(DeferredWork*, bool, jrd_tra*);
417-
static bool validate_text_type (thread_db*, const TemporaryField*);
418414

419415
static string get_string(const dsc* desc);
420416
static void setupSpecificCollationAttributes(thread_db*, jrd_tra*, const CSetId, const char*, bool);
@@ -513,24 +509,6 @@ void DFW_raiseRelationInUseError(const Cached::Relation* relation)
513509
raiseObjectInUseError(obj_type, obj_name);
514510
}
515511

516-
/*
517-
static void raiseRoutineInUseError(const RoutinePermanent* routine, const QualifiedName& name)
518-
{
519-
const string obj_type =
520-
(routine->getObjectType() == obj_udf) ? "FUNCTION" : "PROCEDURE";
521-
const string obj_name = routine->getName().toString();
522-
523-
raiseObjectInUseError(obj_type, obj_name.hasData() ? obj_name : name.toString());
524-
}
525-
*/
526-
527-
static void raiseTooManyVersionsError(const int obj_type, const string& obj_name)
528-
{
529-
ERR_post(Arg::Gds(isc_no_meta_update) <<
530-
Arg::Gds(getErrorCodeByObjectType(obj_type)) << Arg::Str(obj_name) <<
531-
Arg::Gds(isc_version_err));
532-
}
533-
534512
void Jrd::ProtectRelations::relLock::takeLock(thread_db* tdbb, jrd_tra* transaction)
535513
{
536514
m_lock = RLCK_transaction_relation_lock(tdbb, transaction, m_relation);
@@ -3632,78 +3610,6 @@ static bool commit_relation(thread_db* tdbb, SSHORT phase, DeferredWork* work, j
36323610
return false;
36333611
}
36343612

3635-
static bool validate_text_type(thread_db* tdbb, const TemporaryField* tfb)
3636-
{
3637-
/**************************************
3638-
*
3639-
* v a l i d a t e _ t e x t _ t y p e
3640-
*
3641-
**************************************
3642-
*
3643-
* Functional description
3644-
* Make sure the text type specified is implemented
3645-
*
3646-
**************************************/
3647-
3648-
TTypeId ttId = tfb->tfb_desc.getTextType();
3649-
switch(ttId)
3650-
{
3651-
case TTypeId(CS_NONE):
3652-
case TTypeId(CS_BINARY):
3653-
break;
3654-
3655-
default:
3656-
return INTL_defined_type(tdbb, ttId);
3657-
}
3658-
3659-
return true;
3660-
}
3661-
3662-
3663-
static void get_array_desc(thread_db* tdbb, const TEXT* field_name, Ods::InternalArrayDesc* desc)
3664-
{
3665-
/**************************************
3666-
*
3667-
* g e t _ a r r a y _ d e s c
3668-
*
3669-
**************************************
3670-
*
3671-
* Functional description
3672-
* Get array descriptor for an array.
3673-
*
3674-
**************************************/
3675-
SET_TDBB(tdbb);
3676-
Jrd::Attachment* attachment = tdbb->getAttachment();
3677-
3678-
AutoCacheRequest request(tdbb, irq_r_fld_dim, IRQ_REQUESTS);
3679-
3680-
Ods::InternalArrayDesc::iad_repeat* ranges = 0;
3681-
FOR (REQUEST_HANDLE request)
3682-
D IN RDB$FIELD_DIMENSIONS WITH D.RDB$FIELD_NAME EQ field_name
3683-
{
3684-
if (D.RDB$DIMENSION >= 0 && D.RDB$DIMENSION < desc->iad_dimensions)
3685-
{
3686-
ranges = desc->iad_rpt + D.RDB$DIMENSION;
3687-
ranges->iad_lower = D.RDB$LOWER_BOUND;
3688-
ranges->iad_upper = D.RDB$UPPER_BOUND;
3689-
}
3690-
}
3691-
END_FOR
3692-
3693-
desc->iad_count = 1;
3694-
3695-
for (ranges = desc->iad_rpt + desc->iad_dimensions; --ranges >= desc->iad_rpt;)
3696-
{
3697-
ranges->iad_length = desc->iad_count;
3698-
desc->iad_count *= ranges->iad_upper - ranges->iad_lower + 1;
3699-
}
3700-
3701-
desc->iad_version = Ods::IAD_VERSION_1;
3702-
desc->iad_length = IAD_LEN(MAX(desc->iad_struct_count, desc->iad_dimensions));
3703-
desc->iad_element_length = desc->iad_rpt[0].iad_desc.dsc_length;
3704-
desc->iad_total_length = desc->iad_element_length * desc->iad_count;
3705-
}
3706-
37073613

37083614
static bool delete_rfr(thread_db* tdbb, SSHORT phase, DeferredWork* work, jrd_tra* transaction)
37093615
{

0 commit comments

Comments
 (0)