Heavily-convicted criminal had machete at city centre takeaway